Kevin Brosius on Wed, 13 Feb 2002 15:19:32 -0500 |
Okay, that's what I thought. Sounds like the multi-path option in Solaris is what I was looking for. I'd like to be able to pull the ethernet cable and have it fall back to wireless. But the static route's currently prevent that. I could setup dual hostnames on both machines for the separate routes/nets and then use those in combination with changing the default route on the laptop. I just wanted to avoid that confusion. Kevin "Jarvis, John" wrote: > > Kevin, > > As soon as you put two NIC cards in box that box turns into a router. > So the short answer is you have to set route rules, luckily the kernel takes > care of this for you. > > long answer.. > > In your case where you have a wireless connection and a normal ethernet > landline connection they will probably be on different networks so you > shouldn't have any problems. > for example: > eth0: 192.168.1.1 > eth0: 192.168.2.1 > > Which ever network is your default route in the routing table will be the > one you use. > > If the two are on the same subnet then the kernel will pick one of the > interfaces.. how it does it I believe is arbitrary. > > for example in a class C network > > eth0: 192.168.1.1 > eth1: 192.168.1.2 > > If you disconnect one of these, the kernel won't necessarily "fail over" to > the second one. Solaris has something called "network multipathing" that > takes care of this exact type of scenario. I am not sure if there is an > equivelent in linux. > > John > > In your case where you have a wireless connection and a normal ethernet > landline connection they will probably be on different networks so you > shouldn't have any problems. > for example: > eth0: 192.168.1.1 > eth0: 192.168.2.1 > > Which ever network is your default route in the routing table will be the > one you use. > > -----Original Message----- > From: Kevin Brosius [mailto:kbrosius@kns.com] > Sent: Wednesday, February 13, 2002 1:08 PM > To: PLUG > Subject: [PLUG] Dual routing question > > I'm curious about what happens if I specify dual IP addresses for > machines on a local network. For example, I have a laptop with a slow > wireless interface and a network card. When I setup each interface with > different IP addresses, then I can send traffic over either interface. > Is there a way to allow the same host name to use either interface/IP, > preferably with the faster interface being used first? (I'm using > static name lookup from /etc/hosts at the moment.) > > -- > Kevin Brosius > ______________________________________________________________________ Philadelphia Linux Users Group - http://www.phillylinux.org Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|