|
||||||||
|
|
#1
|
|
Hi,
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. 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. How can I configure this? Thanks for any help Regards, Matthias Matthias |
|
#2
|
|||
|
|||
|
On 4 Mar 2007, in the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed). com>, 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 |
|
#3
|
|||
|
|||
|
On 03/04/2007 06:00 PM, Matthias wrote:
> Hi, > > 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. > > 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. > > How can I configure this? # route -n # route del default gw # route add default gw <(ipaddress|fqdn).of.your.wifirouter> # route -n -- Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709 Anu'z Linux@HOME Machines: #168573, 170593, 259192 Chandigarh, UT, 160062, India Gentoo, Fedora, Knoppix/FreeBSD/XP Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/ |
|
#4
|
|||
|
|||
|
Thanks for the hints,
finally a little look at man route.conf did the job. Shame on me ... |
![]() |
| Tags |
| dual, lan, routing, wifi |
| Thread Tools | |
| Display Modes | |
|
|