Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

dual routing wifi / lan

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2007, 12:30 PM
Default dual routing wifi / lan



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
Reply With Quote
  #2  
Old 03-04-2007, 06:55 PM
Moe Trin
Guest
 
Posts: n/a
Default Re: dual routing wifi / lan

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
  #3  
Old 03-04-2007, 10:05 PM
Balwinder S \bsd\ Dheeman
Guest
 
Posts: n/a
Default Re: dual routing wifi / lan

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
  #4  
Old 04-12-2007, 09:27 PM
Matthias
Guest
 
Posts: n/a
Default Re: dual routing wifi / lan

Thanks for the hints,
finally a little look at man route.conf did the job.
Shame on me ...

Reply With Quote
Reply

Tags
dual, lan, routing, wifi

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
Forum Jump


All times are GMT. The time now is 12:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.