LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-27-2005, 08:54 AM   #1
kailun
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 48

Rep: Reputation: 15
Wireless and wired network cards on the same machine


Hi,

I've finally got my wirelss card to work, but I have one last little problem that I can't seem to figure out.

I currently have a wired NIC, ip address 192.168.0.36 (eth0)
The wireless NIC has an ip address of 192.168.0.35 (eth1)
My defalt gateway is 192.168.0.123

When I boot up, only the wired NIC is able to send stuff through the gateway (as I discovered in the routing table using `route -n`)

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.128 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.123 0.0.0.0 UG 0 0 0 eth0

The wireless card is however able to ping other internal ip addresses (192.168.0.xxx).

The only way to get the wireless card working (which I'll be using 90% of the time) is to take down the wired network (eth0), by issuing:

ifconfig eth0 down

and then adding a default gateway, but using eth1 instead of eth0.

My problem is that I'd like to not have this hassle of changing like this all the time. I'd like to be able to fallback on one device or the other depending on if the wired NIC is plugged in or not.

I've read masses of threads on bonding/ip tables/etc, but I am a little confused as to which I should do to achieve what I want to do.

Thanks
 
Old 07-27-2005, 09:12 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
And why don't you add the gateway for eth1 on boot?
Like (I don't remember very well): route add default gw 192.168.0.123 dev eth1
 
Old 07-27-2005, 09:25 AM   #3
kailun
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 48

Original Poster
Rep: Reputation: 15
Hi, if I try your solution to add the gateway for eth1 on boot, the gateway gets added, but it still won't work until I take down eth0 with:

ifconfig eth0 down

I'd like it so that it doesn't matter which one is active.. (ie whether the network cable is plugged in or not) it just works..

Thanks for your help anyway
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking a wired network to a wireless network gothgeek84 Linux - Wireless Networking 3 08-08-2005 02:38 PM
join the two wired network with wireless alvi2 Linux - Wireless Networking 2 04-04-2005 12:02 PM
Wireless Access On Wired Network Terje Linux - Wireless Networking 1 02-03-2005 10:20 AM
Wireless Laptop to Wired ethernet via Linux PC (wired/wireless) sambartle Linux - Wireless Networking 0 01-30-2005 04:37 AM
router with mixed wired/wireless network takisd Linux - Wireless Networking 1 11-28-2004 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration