Overclock.net › Forums › Specialty Builds › Servers › bonding issue in ubuntu
New Posts  All Forums:Forum Nav:

bonding issue in ubuntu

post #1 of 3
Thread Starter 
First thanks to anyone that could help or have a suggestion as to what is going on with this setup. What is happening is that randomly upon bringing up the bonds some of the nics will deside to acquire a dhcp lease instead of participating in the bond. Below is both my ifconfig and /etc/network/interfaces file. As you can see in the ifconfig the nics are showing as slave but have an ip address. Which they should not as far as I know. I have configured the switch for mode 4 negotiations. That is pretty straight forward it seems and shows up correctly. Any help would be greatly appreciated. I have varied the timing delay on bring the bond up and nothing seems to make it any better or worse.


/etc/network/interfaces
Quote:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).


# The loopback network interface
auto lo p11p1 p11p2 p11p3 p11p4 bond0 p4p1 p4p2 p4p3 p4p4 bond1
iface lo inet loopback




#iface p11p1 inet dhcp


#p11p1 configuration
iface p11p1 inet manual
bond-master bond0


#p11p2 configuration
iface p11p2 inet manual
bond-master bond0


#p11p3 configuration
iface p11p3 inet manual
bond-master bond0


#p11p4 configuration
iface p11p4 inet manual
bond-master bond0


# Bonding p11p1-p11p4 to create bond0 NIC to server
iface bond0 inet manual
bond-mode 4
bond-miimon 100
bond-updelay 0
bond-downdelay 0
lacp_rate 1
slaves p11p1 p11p2 p11p3 p11p4
# up ifconfig bond0 up
# address 192.168.1.40
# netmask 255.255.255.0
# broadcast 192.168.1.255
# network 192.168.1.0
# gateway 192.168.1.1


#p4p1 configuration
iface p4p1 inet manual
bond-master bond1


#p4p2 configuration
iface p4p2 inet manual

#p4p3 configuration
iface p4p3 inet manual
bond-master bond1


#p4p4 configuration
iface p4p4 inet dhcp
#iface p4p4 inet dhcp
#address 192.168.1.41
#gateway 192.168.1.1
#netmask 255.255.255.0


# Bonding p4p1-p4p3 to create bond1 NIC for firewall
iface bond1 inet manual
bond-mode 4
bond-miimon 100
bond-updelay 5
bond-downdelay 5
slaves p4p1 p4p2 p4p3
# address 192.168.1.42
# netmask 255.255.255.0
# broadcast 192.168.1.255
# network 192.168.1.0
# up ifconfig bond1 up


# gateway 192.168.1.1


ifconfig
Quote:
bond0 Link encap:Ethernet HWaddr 00:1b:21:a1:0b:54
inet6 addr: fe80::21b:21ff:fea1:b54/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:6610 errors:0 dropped:52 overruns:0 frame:0
TX packets:533 errors:0 dropped:5 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:942110 (942.1 KB) TX bytes:118281 (118.2 KB)


bond1 Link encap:Ethernet HWaddr 00:1b:21:a1:0a:b8
inet6 addr: fe80::21b:21ff:fea1:ab8/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:8278 errors:0 dropped:123 overruns:0 frame:0
TX packets:1237 errors:0 dropped:13 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1233150 (1.2 MB) TX bytes:133763 (133.7 KB)


eth0 Link encap:Ethernet HWaddr d8:eb:97:f9:59:cb
UP 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


eth1 Link encap:Ethernet HWaddr f8:32:e4:8a:4e:55
UP 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


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:65536 Metric:1
RX packets:6029 errors:0 dropped:0 overruns:0 frame:0
TX packets:6029 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1790925 (1.7 MB) TX bytes:1790925 (1.7 MB)


p11p1 Link encap:Ethernet HWaddr 00:1b:21:a1:0b:54
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:875 errors:0 dropped:0 overruns:0 frame:0
TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:109779 (109.7 KB) TX bytes:9036 (9.0 KB)
Interrupt:55 Memory:fe2a0000-fe2c0000


p11p2 Link encap:Ethernet HWaddr 00:1b:21:a1:0b:54
inet addr:192.168.1.206 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:1030 errors:0 dropped:52 overruns:0 frame:0
TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:86100 (86.1 KB) TX bytes:28767 (28.7 KB)
Interrupt:57 Memory:fe240000-fe260000


p11p3 Link encap:Ethernet HWaddr 00:1b:21:a1:0b:54
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:1960 errors:0 dropped:0 overruns:0 frame:0
TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:199750 (199.7 KB) TX bytes:27762 (27.7 KB)
Interrupt:57 Memory:fe1a0000-fe1c0000


p11p4 Link encap:Ethernet HWaddr 00:1b:21:a1:0b:54
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:2746 errors:0 dropped:0 overruns:0 frame:0
TX packets:194 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:546545 (546.5 KB) TX bytes:52716 (52.7 KB)
Interrupt:60 Memory:fe140000-fe160000


p4p1 Link encap:Ethernet HWaddr 00:1b:21:a1:0a:b8
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:2962 errors:0 dropped:38 overruns:0 frame:0
TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:593590 (593.5 KB) TX bytes:7455 (7.4 KB)
Interrupt:46 Memory:fe4a0000-fe4c0000


p4p2 Link encap:Ethernet HWaddr 00:1b:21:a1:0a:b8
inet addr:192.168.1.244 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:4598 errors:0 dropped:48 overruns:0 frame:0
TX packets:1081 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:576109 (576.1 KB) TX bytes:103864 (103.8 KB)
Interrupt:50 Memory:fe440000-fe460000


p4p3 Link encap:Ethernet HWaddr 00:1b:21:a1:0a:b8
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:718 errors:0 dropped:37 overruns:0 frame:0
TX packets:97 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:63451 (63.4 KB) TX bytes:22444 (22.4 KB)
Interrupt:50 Memory:fe3a0000-fe3c0000


p4p4 Link encap:Ethernet HWaddr 00:1b:21:a1:0a:bb
inet addr:192.168.1.237 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21b:21ff:fea1:abb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:38268 errors:0 dropped:0 overruns:0 frame:0
TX packets:43067 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4074352 (4.0 MB) TX bytes:23476915 (23.4 MB)
Interrupt:53 Memory:fe340000-fe360000


virbr0 Link encap:Ethernet HWaddr ba:17:37:ce:b6:ed
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP 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)


vmnet1 Link encap:Ethernet HWaddr 00:50:56:c0:00:01
inet addr:172.16.4.1 Bcast:172.16.4.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:179 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)


vmnet8 Link encap:Ethernet HWaddr 00:50:56:c0:00:08
inet addr:172.16.130.1 Bcast:172.16.130.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:177 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
step up
(12 items)
 
  
CPUMotherboardGraphicsGraphics
4820k EVGA Classified x79 EVGA gtx 980ti SC  EVGA gtx 980ti Classified 
RAMHard DriveCoolingOS
GSkill ripjaws 32 gb samsung 840  custom phase chiller win 10 pro 
MonitorKeyboardCaseMouse
4 of them 3 in surround +1 zboard hawaiian punch rack logitech g502 proteus 
  hide details  
Reply
step up
(12 items)
 
  
CPUMotherboardGraphicsGraphics
4820k EVGA Classified x79 EVGA gtx 980ti SC  EVGA gtx 980ti Classified 
RAMHard DriveCoolingOS
GSkill ripjaws 32 gb samsung 840  custom phase chiller win 10 pro 
MonitorKeyboardCaseMouse
4 of them 3 in surround +1 zboard hawaiian punch rack logitech g502 proteus 
  hide details  
Reply
post #2 of 3
Confirm that you have uninstalled the "networking manager" package if using Ubuntu, or similar package on other distributions. Since you are doing all of the configuration in cli you do not need it, and it might be taking over some of the interfaces after you boot fully.

Also, for this section:

#p4p1 configuration
iface p4p1 inet manual
bond-master bond1


#p4p2 configuration
iface p4p2 inet manual

#p4p3 configuration
iface p4p3 inet manual
bond-master bond1

You did not set the bond master for p4p2.
Edited by compmaster - 2/3/16 at 10:26am
Ultra II
(13 items)
 
 
Servolator
(11 items)
 
CPUMotherboardGraphicsRAM
2nd generation Intel Core i7-2820QM Stock HP Radeon(TM) HD 6850M Standard HP RAM 
Hard DriveOptical DriveCoolingOS
Samsung 470 sieres Blu-ray player & SuperMulti DVD burner Standard 1-fan laptop setup Windows 7 Home Professional x64 
MonitorKeyboardPowerCase
17.3" diagonal Full HD HP 3D Ultra BrightView I... Backlit Keyboard with numeric keypad 130W Adaptable Power Brick HP Envy 17 3D Standard Case 
MouseAudioOther
Synaptics Touchpad Beats Audio HP 3D Active Shutter Glasses, HP TrueVision HD ... 
CPUMotherboardGraphicsRAM
Intel® Core™2 Quad Processor Q9550  XFX MB-N780-ISH9 LGA 775 NVIDIA nForce 780i SLI... GIGABYTE GeForce 210 ADATA 2GB 240-Pin DDR2 SDRAM 
Hard DriveHard DriveOptical DriveCooling
Western Digital Caviar Black Seagate Barracuda LG Black LG Blu-ray/HD DVD-ROM & 16X DVD±R DVD ... Standard Fans 
OSPowerCase
Ubuntu Server 11.10 OCZ ModXStream Pro 600W Antec Nine Hundred 
  hide details  
Reply
Ultra II
(13 items)
 
 
Servolator
(11 items)
 
CPUMotherboardGraphicsRAM
2nd generation Intel Core i7-2820QM Stock HP Radeon(TM) HD 6850M Standard HP RAM 
Hard DriveOptical DriveCoolingOS
Samsung 470 sieres Blu-ray player & SuperMulti DVD burner Standard 1-fan laptop setup Windows 7 Home Professional x64 
MonitorKeyboardPowerCase
17.3" diagonal Full HD HP 3D Ultra BrightView I... Backlit Keyboard with numeric keypad 130W Adaptable Power Brick HP Envy 17 3D Standard Case 
MouseAudioOther
Synaptics Touchpad Beats Audio HP 3D Active Shutter Glasses, HP TrueVision HD ... 
CPUMotherboardGraphicsRAM
Intel® Core™2 Quad Processor Q9550  XFX MB-N780-ISH9 LGA 775 NVIDIA nForce 780i SLI... GIGABYTE GeForce 210 ADATA 2GB 240-Pin DDR2 SDRAM 
Hard DriveHard DriveOptical DriveCooling
Western Digital Caviar Black Seagate Barracuda LG Black LG Blu-ray/HD DVD-ROM & 16X DVD±R DVD ... Standard Fans 
OSPowerCase
Ubuntu Server 11.10 OCZ ModXStream Pro 600W Antec Nine Hundred 
  hide details  
Reply
post #3 of 3
Thread Starter 
That worked flawlessly.Thank you so much for the help. Been tearing my hair out trying to get this to work.

I had caught the p4p2 error a day or so ago and had forgotten to edit the log when I posted it. I had captured the configuration a week ago and posted it to the ubuntu forums and had no replies on how to fix it. So I thought well lets post it to my home forums and see. Should have posted here first. You caught both mistakes quickly. I feel pretty silly for that, as I have called this my home forums for a long while now. doh.gif

Thanks again! cheers.gif
Edited by gildadan - 2/3/16 at 5:46pm
step up
(12 items)
 
  
CPUMotherboardGraphicsGraphics
4820k EVGA Classified x79 EVGA gtx 980ti SC  EVGA gtx 980ti Classified 
RAMHard DriveCoolingOS
GSkill ripjaws 32 gb samsung 840  custom phase chiller win 10 pro 
MonitorKeyboardCaseMouse
4 of them 3 in surround +1 zboard hawaiian punch rack logitech g502 proteus 
  hide details  
Reply
step up
(12 items)
 
  
CPUMotherboardGraphicsGraphics
4820k EVGA Classified x79 EVGA gtx 980ti SC  EVGA gtx 980ti Classified 
RAMHard DriveCoolingOS
GSkill ripjaws 32 gb samsung 840  custom phase chiller win 10 pro 
MonitorKeyboardCaseMouse
4 of them 3 in surround +1 zboard hawaiian punch rack logitech g502 proteus 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Servers
Overclock.net › Forums › Specialty Builds › Servers › bonding issue in ubuntu