Yes, `ifconfig eth1 10.0.2.7 broadcast 10.0.2.255` restores WAN port, but it breaks default gateway record in the routing table, so i have to do `route add default gw 10.0.2.1` to restore it (10.0.2.7 - WAN IP, 10.0.2.1 - gate's IP).
btw, i've noticed that the router sets broadcast adress wrong - 10.255.255.255 instead of 10.0.2.255 (my mask is 255.255.255.0) and i have found no way to set it properly in the Web-interface, only by typing`ifconfig eth1 10.0.2.7 broadcast 10.0.2.255 mask 255.255.255.0` directly.
and i did as you had asked:
~ # nslookup www.google.com
*** Unknown host
nslookup: www.google.com: Unknown host
~ # for a in 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23 24 28 29 30; do echo -n "$a:$(et -i eth1 phyrd $a) "; done; echo
0:0x3000 1:0x786d 2:0x0022 3:0x5521 4:0x01e1 5:0x45e1 6:0x0007 7:0x2801 16:0x1800 17:0x006d 18:0x0f90 19:0x0000 20:0xc0b0 21:0x0003 22:0x0fdf 23:0x8001 24:0xb65c 28:0x0044 29:0x1000 30:0x3a60
~ # et -i eth1 up
~ # sleep 2s
~ # nslookup www.google.com
*** Unknown host
nslookup: www.google.com: Unknown host
~ # sleep 5s
~ # for a in 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23 24 28 29 30; do echo -n "$a:$(et -i eth1 phyrd $a) "; done; echo
0:0x3000 1:0x786d 2:0x0022 3:0x5521 4:0x01e1 5:0x45e1 6:0x0005 7:0x2801 16:0x1800 17:0x0000 18:0x0e99 19:0x0000 20:0xc0b0 21:0x0003 22:0x0fdf 23:0x8001 24:0x4abf 28:0x0044 29:0x1000 30:0x3a60
~ # et -i eth1 speed auto
~ # sleep 2s
~ # nslookup www.google.com
Server: gate2.maryno.yes
Address: 10.0.2.1
Name: www.google.akadns.net
Address: 216.239.59.147
~ # sleep 5s
~ # for a in 0 1 2 3 4 5 6 7 16 17 18 19 20 21 22 23 24 28 29 30; do echo -n "$a:$(et -i eth1 phyrd $a) "; done; echo
0:0x3000 1:0x786d 2:0x0022 3:0x5521 4:0x01e1 5:0x45e1 6:0x0007 7:0x2801 16:0x1800 17:0x006d 18:0x0f90 19:0x0000 20:0xc0b0 21:0x0002 22:0x0fdf 23:0x8001 24:0xb65c 28:0x0044 29:0x1000 30:0x3a60
~ #
I think nslookup isn't a good choice to test the connection, cos timeout is *TOO* long, imho `ping -c 1 host` is much better.




Reply With Quote