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 10-25-2012, 08:45 AM   #1
thesunlover
Member
 
Registered: Nov 2009
Posts: 32

Rep: Reputation: 2
This looks like a tough routing issue


Hi, The default gateway (172.17.220.1) cannot be pinged via the default interface bond0 (172.17.220.231), but can be pinged via interface eth1 (10.201.135.73).

Quote:
# ping -I eth1 172.17.220.1
PING 172.17.220.1 (172.17.220.1) from 10.201.135.73 eth1: 56(84) bytes of data.
64 bytes from 172.17.220.1: icmp_seq=0 ttl=255 time=5.48 ms
64 bytes from 172.17.220.1: icmp_seq=1 ttl=255 time=0.523 ms

# ping -I bond0 172.17.220.1
PING 172.17.220.1 (172.17.220.1) from 172.17.220.231 bond0: 56(84) bytes of data.
From 172.17.220.231 icmp_seq=1 Destination Host Unreachable
From 172.17.220.231 icmp_seq=2 Destination Host Unreachable
Ping is supposed to work with the default interface bond0. Because the virtual interface bond0 can be pinged by systems in the same subnet, bond0 is working (right?). There must be a routing issue. Here is the interfaces info:

Quote:
# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
IPADDR=172.17.220.231
NETMASK=255.255.252.0
GATEWAY=172.17.220.1
ONBOOT=yes
BOOTPROTO=static
USERCTL=no

# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
IPADDR=10.201.135.73
NETMASK=255.255.248.0
ONBOOT=yes
BOOTPROTO=static
Please help. Thank you much in advance!

nz
 
Old 10-25-2012, 06:38 PM   #2
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
Did you activated the Kernel module named bonding?

I had followed This article and it works fine for me. And do the server has eth0 interface as well?.

You can check the status of bonding with the command

Code:
cat /proc/net/bonding/bond0

Last edited by KinnowGrower; 10-25-2012 at 06:39 PM.
 
Old 10-26-2012, 08:20 AM   #3
thesunlover
Member
 
Registered: Nov 2009
Posts: 32

Original Poster
Rep: Reputation: 2
Because the IP (172.17.220.231) on the virtual interface bond0 can be pinged by systems in the same subnet, bond0 and bonding service are working, right? Here is the process info:

Quote:
# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v2.6.3-rh (June 8, 2005)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth4
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 200
Down Delay (ms): 200

Slave Interface: eth4
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:11:0a:59:b7:e8
To simplify the issue, I disable the 2nd slave interface eth7. That should make no difference.

Thank you!
 
Old 10-27-2012, 10:45 AM   #4
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
So eth4 is slave interface for bonding.
Can you please show the configuration file for eth4?
 
Old 10-29-2012, 08:05 AM   #5
thesunlover
Member
 
Registered: Nov 2009
Posts: 32

Original Poster
Rep: Reputation: 2
Here you are:

Quote:
# cat ifcfg-eth4
DEVICE=eth4
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
Thanks!
 
Old 10-30-2012, 09:24 PM   #6
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
Can you show the output of ifconfig and route -n ?
 
  


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
Routing issue blue_skye Linux - Networking 2 01-03-2011 08:30 PM
IP Routing Issue melo15 Linux - Newbie 3 07-14-2010 03:06 AM
routing issue stioanid Linux - Networking 5 01-29-2009 10:31 PM
A silly but tough Routing problem aronnok Linux - Networking 10 01-19-2005 03:19 PM
Routing Issue jrmann1999 Linux - Networking 1 01-15-2002 10:58 AM

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

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