LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-13-2007, 07:15 AM   #1
naim.khan
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Rep: Reputation: 0
Linux does not detect link down?


Im new to Linux. Appreciate any help.

I have the following setup. I need to use Eth0 as primary link and Eth1 as its backup in case Eth0 goes down.

Chassis Server
-------- -------
|--|
| |------172.16.1.2/24---|--|----Eth0 172.16.1.1/24
10.16.131.174---| | | |
| |------192.168.1.2/24--|--|----Eth1192.168.1.1/24
|--|

Router - show ip route

C 10.16.131.0/24 Direct, Gi 5/12 0/0 03:24:04
C 172.16.1.0/24 Direct, Gi 5/10 0/0 00:06:38
C 192.168.1.0/24 Direct, Gi 5/11 0/0 03:36:58

Server:

[root@maa-101 ~]# /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
172.16.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 172.16.1.2 0.0.0.0 UG 10 0 0 eth0
default 192.168.1.2 0.0.0.0 UG 20 0 0 eth1
[root@maa-101 ~]#

Two default routes have been configured - through eth0 is with metric 10 and through eth1 is with metric 20.

I ping from server to 10.16.131.174 - as expected it takes the eth0 route through next hop 172.16.1.2.

When I disconnect the cable on g5/10, the alternate default gateway on the server through Eth1 does not take effect.

I see link LED not lit on eth0. But the route is not removed from the routing table. Nor is the link status shown as down in ifconfig.

Please help. Am I missing something? Is this how Linux behaves?

Thanks
Naim.
 
Old 07-13-2007, 07:25 AM   #2
naim.khan
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Bettering the ASCII ART

Chassis Server
-------- -------


|--|
| |-172.16.1.2/24---|--|-Eth0 172.16.1.1/24
10.16.131.174---| |
| |-192.168.1.2/24--|--|-Eth1192.168.1.1/24
 
Old 07-13-2007, 07:39 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Put [CODE] tags around
 
Old 07-13-2007, 08:35 AM   #4
naim.khan
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Original Poster
Rep: Reputation: 0
sorry i didnt understand

Put tags around?
 
Old 07-13-2007, 08:47 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by naim.khan
Put tags around?
Around your nice ascii art
Before the ascii part, put "[ CODE ]" (without the space and quotes) and after, to stop it, put [/ CODE ](without the space).
Code:
|--|
|  |-172.16.1.2/24---|--|-Eth0 172.16.1.1/24
      10.16.131.174---| |
                      | |-192.168.1.2/24--|--|-Eth1192.168.1.1/24
 
Old 07-13-2007, 09:33 AM   #6
naim.khan
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Ok fantastic.

Can you please tell me if the route through eth0 should not be flushed out?

Code:
Chassis                                         Server
--------                                        -------
 
 
                |--|
                |  |-172.16.1.2/24---|--|-Eth0 172.16.1.1/24
10.16.131.174---|  |                  
		|  |-192.168.1.2/24--|--|-Eth1192.168.1.1/24
                |--|
 
Old 07-13-2007, 10:34 AM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
You might have better luck configuring this with nic bonding in failover mode. This would give you two nics but one ip.
 
Old 07-13-2007, 01:17 PM   #8
naim.khan
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Lazlow - The thing is we have one 10 gig and one 1 gig NIC. to make things easier, I used eth0 and eth1 to explain. So port-channel wont work. On the Router, 10 gig and 1 gig interfaces can not be bonded onto one channel. So theres a problem.
 
Old 07-13-2007, 01:48 PM   #9
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
In the Fedora 6 distribution, there are two services (daemons) to handle this. One detects a change in which network device is working best, and the other switches to it. I haven't tried this, personally, since I have at most one working network device, and I don't know what is comparable in other districutions.
 
  


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
skge: eth0: Link is up... Link is down... Link is up.... sugar2 Linux - Hardware 5 07-03-2007 03:52 PM
linux can't detect my hardware !!! amiri Linux - Laptop and Netbook 3 02-26-2007 11:59 PM
Linux don't detect my modem omidhhh Linux - Hardware 1 09-30-2004 10:50 PM
Linux doesn't detect all my RAM? tomas412 Linux - Hardware 5 09-23-2004 04:30 PM

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

All times are GMT -5. The time now is 09:12 AM.

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