You are not logged in.

#1 2007-03-14 16:39:59

DeltaXFX
Member
From: USA
Registered: 2006-08-01
Posts: 74

dual nic's, dual networks, setting this up? [SOLVED]

Hi,
I have a laptop with wireless (rt2500) and wired nic. Both work fine, but I am in a situation where I need to connect the wireless to one network, and the wired to another network. (Wireless to the internet, and wired to small home network). Im not trying to bridge them. I can set this up pretty easily, just using DHCP for both the wireless and wired, but after 15 minutes to an hour, requests I make on the wireless side try going over the wired network.
I tried fix it by:

route add -net 10.18.0.0 netmask 255.255.0.0 ra0
route add -net 192.168.1.0 netmask 255.255.255.0 eth0

but still after a half hour or so the requests I make on wireless (internet) try going over the wired interface.
Any ideas on how to keep these two interfaces associated with their respective networks?
Thanks smile

Last edited by DeltaXFX (2007-03-16 16:19:52)


The Internet...? Is that thing still around?

Offline

#2 2007-03-16 16:18:47

DeltaXFX
Member
From: USA
Registered: 2006-08-01
Posts: 74

Re: dual nic's, dual networks, setting this up? [SOLVED]

I just had an AHA moment and think I solved my problem.

route -n gives me

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.18.0.0       0.0.0.0         255.255.0.0     U     0      0        0 ra0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
0.0.0.0         10.18.0.1       0.0.0.0         UG    0      0        0 ra0

So both eth0 and ra0 have destinations to the 0.0.0.0 network. Thats no good because only ra0 really goes to the internet. so I just did

route del -net 0.0.0.0 eth0

So now

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.18.0.0       0.0.0.0         255.255.0.0     U     0      0        0 ra0
0.0.0.0         10.18.0.1       0.0.0.0         UG    0      0        0 ra0

Only one route for the internet, no more problems smile


The Internet...? Is that thing still around?

Offline

Board footer

Powered by FluxBB