LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-29-2008, 08:10 PM   #1
pgb205
Member
 
Registered: Nov 2007
Posts: 129

Rep: Reputation: 15
Question Specifying device to route traffic through; Or how to bind device to eth0


Here is my problem. Have an onboard NIC (eth0) which is malfunctioning.
So I got USB->Ethernet adapter (Linksys USB2000). The device is being recognized by Centos OK and I see a new eth1 interface after doing ifconfig -a. However even after I assign IP and netmask to eth1 and ifup I still can't ping it if I disconnect cable from eth0. If cable is connected to eth0 I can ping both devices. Doing route command
shows last line as similar to
default 0.0.0.0 172.23.23.34 eth0

If understand things correctly the setup isn't working because the traffic is still trying to get out through eth0 when going over the default route. So when I unplug the cable and replug it into eth1 the traffic is still trying to go out over unplugged device(eth0).

So my two options are probably to setup new default route
route add default gw 172.23.23.34 eth1. The problem with this is that I can't seem to make this new default route permanent. Every time I reboot the machine route changes to 'eth0'.

Another idea is to somehow disable the eth0 device (the malfunctioning device) and to reassign 'eth0' to the USB->Ethernet adapter(currently at eth1). Not sure how to do this though.
 
Old 07-29-2008, 08:56 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
If the device is malfunctioning, just disable it in the BIOS, or blacklist the device in /etc/modprobe.d/blacklist.
 
  


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
Debian - eth0 error: no such device on ifup eth0 svancouw Linux - Hardware 4 09-07-2011 04:32 PM
eth0: Device eth0 has different MAC address than expected,ignoring. lin1010 Linux - Networking 5 11-24-2010 07:30 AM
snort[5785]: FATAL ERROR: OpenPcap() device eth0 open: bind: Network is down shams Linux - Security 3 05-09-2007 04:39 PM
eth0 device cannot be located, nVidia onboard device Dunedain Linux - Wireless Networking 1 04-16-2005 11:24 AM
eth0 device cannot be located, nVidia onboard device Dunedain Linux - Networking 1 04-16-2005 12:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:55 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