Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-25-2004, 01:52 PM
|
#1
|
LQ Newbie
Registered: Jun 2004
Posts: 18
Rep:
|
Routing between a wired ethernet (internet connection) and a wireless card (home net)
Hi!,
Firstly I would like to thank you all for your help with my previous problem concerning selecting my ethernet (eth0) as the internet connection. This all now works fine, and eth0 is totally configured.
My problem at this stage is enabling the wireless interface also, I found that doing a "netconfig" would remove my eth0 settings, and only configure the wireless network. I also found that in order for the eth0 to work, eth1 had to be disabled, this; I presume is a consequence of misconfigured routing.
from a "route -n" query, I get the correct destinations of the eth0 device, along with gateways etc, and this gateway is also defined as default in /etc/rc.d/rc.inet1.conf, but nothing from eth1 (i know this should happen because It isn't told to use dhcp in the rc.d/rc.inte1.conf)...
I know my eth1 device is detected from both lspci and ifconfig, and the penultimate question I have is:
How can i configure my routing (i am assuming this is the issue) to route network packets through eth1, and internet packets through eth0...
preferably, but not essentially, I would aspire to do this without the need of going offline.
|
|
|
11-25-2004, 02:34 PM
|
#2
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
Hi.
What you would do is make eth0 the default route, and do 'route add -net 192.168.0.0 netmask 255.255.255.0 eth1' (assuming your network is using the 192.168.0.x address space). That would route all internal network traffic to eth1, and everything else should go to eth0. Hopefully.
You shouldn't have to go offline to do this.
Dave
|
|
|
11-25-2004, 04:51 PM
|
#3
|
LQ Newbie
Registered: Jun 2004
Posts: 18
Original Poster
Rep:
|
Thanks for the reply Dave, I had thoughts of it being along those lines, however I get an error from SIOCADDRT saying "No Such Device", I personally have no idea what this means, any ideas as to what I should refine?
|
|
|
11-25-2004, 07:13 PM
|
#4
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
Hi again.
Try doing 'ifconfig eth1 up' first. I'm guessing that's what the problem is, however I get the same error if I try to configure a device which doesn't exist, so it might be a driver issue.
Dave
|
|
|
11-26-2004, 06:33 AM
|
#5
|
LQ Newbie
Registered: Jun 2004
Posts: 18
Original Poster
Rep:
|
yeah, I'd also think it would be a driver issue now, however I know the eth1 has been working. no kernel modules have been changed, only the inet1.conf.
still getting the same error by the way, so right now I'm pretty confused
|
|
|
11-28-2004, 12:54 PM
|
#6
|
LQ Newbie
Registered: Jun 2004
Posts: 18
Original Poster
Rep:
|
Ok, I realise this thread died, but after acknowledging the idea that my card may infact not be recognised by my system I tried other things...
I've come across "iwconfig" and it certainly does appear that "eth1" is up and connected to the network, here's my results of iwconfig:
would lead me to believe theres just one simple thing I could do to fix this, but for the life of me I can't find out what.
;note, In /etc/rc.d/rc.inet1.conf, the USE DHCP for eth1 is set to OFF, this is one suspicion I have as to why it does not work, however enabling it scraps my settings for eth0.
your help is appreciated
Paul
Last edited by ner0; 11-28-2004 at 12:57 PM.
|
|
|
11-28-2004, 01:07 PM
|
#7
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
What do you get when you run ifconfig on its own (after doing 'ifconfig eth1 up')?
Dave
|
|
|
11-28-2004, 04:35 PM
|
#8
|
LQ Newbie
Registered: Jun 2004
Posts: 18
Original Poster
Rep:
|
heres the ifconfig results; sorry I'm 3 hours late lol...
Quote:
eth0 Link encap:Ethernet HWaddr 00:0C:76:A8:1B:C0
inet addr:my.ip.address.here Bcast:255.255.255.255 Mask:255.255.248.0
EtherTalk Phase 2 addr:65280/9
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3048646 errors:0 dropped:0 overruns:0 frame:0
TX packets:90263 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:215378546 (205.4 Mb) TX bytes:9026295 (8.6 Mb)
eth1 Link encap:Ethernet HWaddr 00:09:5B:91:A4:A4
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:673 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:235574 (230.0 Kb) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
EtherTalk Phase 2 addr:0/0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:46914 errors:0 dropped:0 overruns:0 frame:0
TX packets:46914 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:5689656 (5.4 Mb) TX bytes:5689656 (5.4 Mb)
|
hope this helps.
|
|
|
11-29-2004, 01:12 AM
|
#9
|
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109
Rep:
|
It looks like you need to configure eth1 (i.e. give it an IP address etc). If you're using DHCP for eth1, then try running 'dhclient eth1'. If not then you can use ifconfig to set up the interface.
I'm not sure why you were getting 'No such device', though.
Dave
|
|
|
All times are GMT -5. The time now is 07:19 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|