Re: dual routing wifi / lan



On 4 Mar 2007, in the Usenet newsgroup comp.os.linux.networking, in article
<1173011424.752980.314150@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, Matthias wrote:

i got the following problem. I've got a workstation with two ethernet
cards: eth0 LAN card, eth1 wifi card. I use the wireless card to
connect to the internet via a wifi-router and the LAN card to connect
to a server (single computer), which disks are mounted via nfs.

And the routing table looks like...

I would like all connections and traffic be routed through the
wireless device, EXCEPT for requests to the server ip, which should be
routed through the LAN device.

Then put the Ethernet on a separate network (or at least use a 'host'
route) instead of having everyone on the same address range.

How can I configure this?

/sbin/ifconfig eth0 192.168.1.1 netmask 255.255.255.0
/sbin/ifconfig eth1 192.168.100.1 netmask 255.255.255.0
/sbin/route add default gw 192.168.100.254

or similar.

Old guy
.



Relevant Pages

  • Re: Wake PC on Sound Event
    ... we had "Wake On Lan". ... wanted the LAN card to wake the computer, ... all of which could have access to the PME ...
    (alt.comp.periphs.mainboard.asus)
  • networking with ethernet and wlan in my box
    ... I have a linux box running Linux kernel 2.6.12-18mdk Mandriva 2006 ... I have just put a wireless pci lan card in it as well. ... UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ...
    (comp.os.linux.networking)
  • working with two nics (lan and wlan)
    ... I have a headless machine on my home network with a LAN card and a wireless card. ... If my lan cable is connected to its lan card, it gets an IP automatically from my firewall machine. ...
    (Debian-User)
  • Re: [SLE] Acer Aspire 3000
    ... SuSE seems to detect the LAN card, ... If I boot the laptop into windows I can use this cable and the LAN ... I'm a little surprised yast doesn't olffer to install ndiswrapper when you try ...
    (SuSE)
  • Re: dual routing wifi / lan
    ... cards: eth0 LAN card, eth1 wifi card. ... I use the wireless card to ... # route del default gw ...
    (comp.os.linux.networking)