Networking Forums

Networking Forums > Computer Networking > Linux Networking > dual routing wifi / lan

Reply
Thread Tools Display Modes

dual routing wifi / lan

 
 
Matthias
Guest
Posts: n/a

 
      03-04-2007, 11:30 AM
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

 
Reply With Quote
 
 
 
 
Moe Trin
Guest
Posts: n/a

 
      03-04-2007, 05:55 PM
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
 
Reply With Quote
 
Balwinder S \bsd\ Dheeman
Guest
Posts: n/a

 
      03-04-2007, 09:05 PM
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/
 
Reply With Quote
 
Matthias
Guest
Posts: n/a

 
      04-12-2007, 08:27 PM
Thanks for the hints,
finally a little look at man route.conf did the job.
Shame on me ...

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual NIC Routing Lee Windows Networking 11 01-10-2008 09:45 AM
Routing problem with dual nics Alex Linux Networking 11 10-09-2006 02:44 AM
Dual-network IP assignments on one NIC / Routing kihoshk@gmail.com Windows Networking 3 05-03-2006 03:34 PM
dual homed web server routing big DWK Linux Networking 1 04-22-2005 03:33 AM
dual nics --- one problem:routing to wrong nic Chris Moore Windows Networking 5 11-17-2004 02:27 AM



1 2 3 4 5 6 7 8 9 10 11