LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-15-2009, 12:39 PM   #1
wortmanb
LQ Newbie
 
Registered: Jun 2007
Distribution: Kubuntu, RedHat, CentOS
Posts: 3

Rep: Reputation: 0
bond0 and eth0 both active after reboot


I've been trying to configure a pair of NICs using bonding on my Ubuntu 904 box. After a reboot, here's what I'm seeing:

bret@marvin:~$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 bond0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 bond0
bret@marvin:~$ 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 bond0
192.168.1.0 * 255.255.255.0 U 1 0 0 eth1
192.168.1.0 * 255.255.255.0 U 1 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 bond0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 100 0 0 bond0


My /etc/network/interfaces file looks like this:

auto lo
iface lo inet loopback

auto bond0
iface bond0 inet static
address 192.168.1.199
gateway 192.168.1.1
netmask 255.255.255.0
slaves eth0 eth1
bond-mode 0
bond-miimon 100


#iface eth0 inet static
#address 192.168.1.199
#netmask 255.255.255.0
#gateway 192.168.1.1
#
#auto eth0
#
#iface eth1 inet static
#address 192.168.1.200
#netmask 255.255.255.0
#gateway 192.168.1.1
#
#auto eth1


And my /etc/modprobe.d/bonding looks like this:

alias bond0 bonding
options bonding mode=0 miimon=100


I've obviously got something that's starting my eht0 and eth1 interfaces separately, even though they know they're slaved:

bret@marvin:~$ ifconfig -a
bond0 Link encap:Ethernet HWaddr 00:1b:fc:25:02:a4
inet addr:192.168.1.199 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21b:fcff:fe25:2a4/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:839 errors:0 dropped:0 overruns:0 frame:0
TX packets:558 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:75492 (75.4 KB) TX bytes:104301 (104.3 KB)

eth0 Link encap:Ethernet HWaddr 00:1b:fc:25:02:a4
inet addr:192.168.1.233 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:434 errors:0 dropped:0 overruns:0 frame:0
TX packets:287 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37961 (37.9 KB) TX bytes:46709 (46.7 KB)
Interrupt:249 Base address:0x6000

eth1 Link encap:Ethernet HWaddr 00:1b:fc:25:02:a4
inet addr:192.168.1.225 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:405 errors:0 dropped:0 overruns:0 frame:0
TX packets:271 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37531 (37.5 KB) TX bytes:57592 (57.5 KB)
Interrupt:18 Base address:0x9400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:534 errors:0 dropped:0 overruns:0 frame:0
TX packets:534 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:57656 (57.6 KB) TX bytes:57656 (57.6 KB)

pan0 Link encap:Ethernet HWaddr 56:5f:86:8f:af:1d
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)



What am I missing?
 
Old 10-15-2009, 01:04 PM   #2
wortmanb
LQ Newbie
 
Registered: Jun 2007
Distribution: Kubuntu, RedHat, CentOS
Posts: 3

Original Poster
Rep: Reputation: 0
The original problem was an inability to access addresses through the default gateway that were external to my network. I solved that by deleting the default route for eth0. Is this configuration now correct?
 
Old 10-20-2009, 01:13 PM   #3
wortmanb
LQ Newbie
 
Registered: Jun 2007
Distribution: Kubuntu, RedHat, CentOS
Posts: 3

Original Poster
Rep: Reputation: 0
Now what seems to be happening is that after a random period of time, NetworkManager will decide to activate or inactive something and I lose all network connectivity. I have to ifconfig down an interface, though sometimes this also causes NM to add another default route for that interface when I ifconfig up it.

Anyone?
 
  


Reply

Tags
bonding, network manager, networking



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
test to see if eth0 is active DragonM15 Linux - Networking 2 07-09-2008 04:00 PM
Eth0 is not active after boot toes Linux - Wireless Networking 3 07-23-2006 04:34 PM
Cannot ping self ??? eth0 not active ??? Wynand1 Linux - Networking 2 06-29-2006 12:11 AM
netdump fails if bond0 is active da_kidd_er Linux - Networking 1 10-27-2004 04:30 AM
No Active Any key to reboot flynhi66 Linux - Newbie 2 03-02-2004 01:11 PM

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

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