??: |
"Dave Saville" <os2-wireless_users@2rosenthals.com> |
?????? ????????? ?????????????? ????????? |
????: |
Odd routing with two NICs |
????: |
Wed, 09 Aug 2006 09:03:39 +0100 (BST) |
????: |
"os2-wireless_users@2rosenthals.com" <os2-wireless_users@2rosenthals.com> |
|
---|
Normally I either have my laptop on wired or WIFI. They are different networks.
Because of the hot weather I have been using WIFI a lot outside and had set
XWLan to restore the wireless state on start up.
Now I am back inside and, without thinking, wired up the laptop as usual. I use
plug keyboard/mouse/Screen/ethernet when in my den.
Now because of the problems mentioned before in this group with regard to
switching NICs and issues with file & print I always assign a dummy address to
the NIC not in use.
Now my desktop is connected to both networks and has "ipgate on" Its IP's are
81.187.184.98/255.255.255.248 and 192.168.0.2/255.255.255.0
Once the laptop has booted and XWLAN done it's thing I get on the "unused" NIC
on the 81 net 192.168.200.250/255.255.255.0 and the wifi nic
192.168.0.49/255.255.255.0
netstat -r from desktop
destination router netmask metric flags intrf
default 81.187.184.97 0.0.0.0 0 UGSP lan1
12.172.135.250 81.187.184.97 255.255.255.255 0 UGHW lan1
69.90.217.26 81.187.184.97 255.255.255.255 0 UGHW lan1
81.103.221.14 81.187.184.97 255.255.255.255 0 UGHW3 lan1
81.187.81.187 81.187.184.97 255.255.255.255 0 UGHW3 lan1
81.187.184.96 81.187.184.98 255.255.255.248 0 UC lan1
127.0.0.1 127.0.0.1 255.255.255.255 0 UH lo
192.168 192.168.0.2 255.255.255.0 0 UC lan0
195.249.183.204 81.187.184.97 255.255.255.255 0 UGHW lan1
netstat -r from laptop
destination router netmask metric flags intrf
default 192.168.0.4 0.0.0.0 0 UGP lan1
81.187.184.98 192.168.0.4 255.255.255.255 0 UGHW lan1
81.187.184.103 192.168.0.4 255.255.255.255 0 UGHW lan1
127.0.0.1 127.0.0.1 255.255.255.255 0 UH lo
130.88.202.49 192.168.0.4 255.255.255.255 0 UGHW3 lan1
192.168 192.168.0.49 255.255.255.0 0 UC lan1
192.168.200 192.168.200.250 255.255.255.0 0 UC lan0
192.168.201.255 192.168.0.4 255.255.255.255 0 UGHW lan1
Now the odd part. If I do something that requires file & print, for example a
directory list on a shared drive, it uses the 81 net - and it works. Now the
wired 81 net will get initialised first on an 81 address at boot. Then XWLan
comes along reassigns the NIC to 192.168.200.250 and inits the wifif card.
*Then* I login to the LAN which gets the shares going. I can't see either why
it does what it is doing, nor, more importantly, *why* it actually works.
--
Regards
Dave Saville
|