| Back to logs list
333698 2010 年 07 月 08 日 01:06 Reading (loading. ..) Comments (1) Category: Personal Diary
First of all thank the brothers and sisters online.
Environment: ros 2.9.27
script generator: v2.1
a first bubble that the next few days before the Forum found the wrong place in their own
Login winbox initialization ros
ago are to receive ros on the keyboard, monitor, configure lan card address and then will display the keyboard connected to a computer, the computer connection with ros local network segment, connection winbox, such as testing automatic acquisition ip local connection is set automatically when you turn to get.
ros
initial response when needed, and repeat the process
bubble Forum
know, winbox can ros lan card mac address to log in,
tall ugg boots, do we need the ip of the local connection.
initialization winbox in the new terminal to be initialized using the initial of the log for later use mac winbox can configure.
Summary: the first set ros computer BIOS is set to start automatically calls, ignore all the wrong turn, can no longer access the keyboard and display.
II: Configuring two-adsl + pppoe service process
1, installation of ros, the omitted here.
2, configure the lan ip
3,
ugg tall boots, the computer with ip, and ros a network segment, winbox landing, access to the lan of the MAC, the ip for the mac landing.
ip
is back after landing point of the next small □ (there are three ... that, connect the left one) in the open menu can be changed to point mac
4,
uggs boots, change the card names
I first read wan1, the second to wan2, the third to lan.
5, the script generator with load balancing dual pppoe script, if you like me back but also increase the pppoe service, then be a significant change,
black ugg boots, or pppoe dial-up users will not pass.
secret garden: the script will be generated among the in-interface = ether1 remove or replace the src-address = 192.168.0.0/255.255.255.0
behind the mask for your IP and LAN ..
these words I have to go later Bay Road, the first replacement I do not know the script generates two-ADSL, or increase the pppoe service script, where the boss is the replacement generation refers to the script in the two-ADSL, I have the wrong set ros LAN segment, the segment you want to add to set pppoe service segment.
default segment generated by the script generated is: 10.10.10.0 pppoe increase if the default script, where you want to replace the 10.10.10.0/255.255.255.0
6, increase the dynamic refresh the gateway script
7,
ugg boot shop, increase the pppoe service
8, increase the pppoe user
to this configuration is successful
configuration script:
1, generate two-adsl load balancing script
(red: Replace your own dns, account number, password, if the default generated by the script generator pppoe service segment,
ugg classic tall, 10.10.10.0/255.255.255.0 not changed)
import method: login winbox, select the new terminal (with a new terminal I do not like to use the import script to import box, because the error in the new terminal will be prompted to import, although the tips can not read anything, but we can see that there error message)
in the new terminal in the right pass + Enter to import
/ ip address add address = 192.168.0.254/255.255.255.0 interface = lan comment = lan
/ ip dns set primary-dns = 222.172.200.68 secondary-dns = 61.166.150.123 allow-remote-requests = yes
/ ip firewall mangle add chain = forward protocol = tcp tcp-flags = syn action = change-mss new-mss = 1440
/ interface pppoe-client add name = out1 comment = connection-state = new nth = 1,1,0 action = mark-connection new-connection-mark = 1 passthrough = yes disabled = no
/ ip firewall mangle add chain = prerouting src-address = 10.10.10.0/255.255 .255.0 connection-mark = 1 action = mark-routing new-routing-mark = 1 passthrough = no disabled = no
/ ip firewall nat add chain = srcnat connection-mark = 1 action = src-nat to-addresses = 58.58.58.1 to-ports = 0-65535 comment = -default-route = no disabled = no
/ interface pppoe-client enable pppoe-out2
/ ip address add address = 58.58.58.2/32 interface = pppoe-out2 comment = route add gateway = 58.58.58.2 routing-mark = 2 comment = 1 action = mark-connection new-connection-mark = 2 passthrough = yes disabled = no
/ ip firewall mangle add chain = prerouting src-address = 10.10.10.0/255.255.255.0 connection-mark = 2 action = mark- routing new-routing-mark = 2 passthrough = no disabled = no
/ ip firewall nat add chain = srcnat connection-mark = 2 action = src-nat to-addresses = 58.58.58.2 to-ports = 0-65535 comment =
2, generates refresh the gateway script is: winbox, the added task, the script generator generates the code next to the prompt method of operation.
script:
: local assign-address
: local new-address
: local status
: local x
: set x 0
: for i from = 1 to = $ x do = {
: set status [/ interface get [/ interface find name = (status = true) do = {
: set new-address [/ ip address get [/ ip address find dynamic = yes interface = (]
: set new-address [: pick $ new-address 0 ([: len $ new-address] -3)]
: set assign-address [/ ip address get [/ ip address find dynamic = no interface = (pick $ assign-address 0 ([: len $ assign-address] -3)]
: if ($ assign-address! = $ new-address) do = {/ ip address set [/ ip address find comment = $ i] address = $ new-address network = $ new-address
broadcast = $ new-address
/ ip route set [/ ip route find comment = $ i] gateway = $ new-address
; / ip fir nat set [/ ip fir nat find comment = $ i] to-addresses = $ new-address
/ ip route set [/ ip route find comment = $ i] gateway = $ new-address
}
}
}
3, increase the pppoe service (in the new terminal in the right pass + Enter Import)
Note that this segment is the two-lane into account the above mentioned local area network segment
/ ip pool add name = PPPoE_Pool ranges = 10.10.10.2-10.10.10.254
/ interface pppoe-server server add service-name = PPPoE_Server interface = lan one-session-per-host = yes disabled = no
/ ppp profile add name = = yes rate-limit = 800000/1200000 dns-server = 222.172.200.68,61.166.150.123
4, increase the pppoe in the new terminal where the user right-pass + Enter to import
/ ppp secret add name = ppp secret add name =
compiled about the use Notepad instead you need to add users.
to this success.
effect diagram:
1, pppoe-out1 dial-up, pppoe-201 transferred to the data graph, because only one experiment adsl, pppoe-out2 not test conditions.
2, pppoe-out1 data flows
3, pppoe-out1 configuration
4, mangle case
5, NAT situation
6, ip case
7, ppp case
8, pppoe account the situation
9, dns circumstances
10, system status
because I have only one home adsl, the final connection is 50% packet loss rate, is not half of the package sent to another way out. Please enlighten me
my beginner ros, my qq: 333698, welcome to add me to communicate with.