I’m no network technician but I’ll try to explain. I have a complex network system where many servers connect to each other, and today after a reboot, none of my servers could reach my webserver ip (192.168.0.18). Accessing my webserver, when trying to ping the router 192.168.0.1 it says “Host unreachable”. I checked my interfaces and it says bond0 is DOWN.<\/p>\n
Tried to set it up manually but it didn’t work. In /etc/network/interfaces eth0 and eth1 are slaves of bond0, but when running I don’t know if those interfaces are required to be UP for the webserver to work properly, neither how it looked like before rebooting. No cable or hardware changes were made.<\/p>\n I’m using ubuntu 12.04, and unfortunately I can’t update it now. I just have to fix this as soon as possible.<\/p>\n Output of Content of /etc/network/interfaces:<\/p>\n I’m no network technician but I’ll try to explain. I have a complex network system where many servers connect to each other, and today after a reboot, none of my servers could reach my webserver ip (192.168.0.18). Accessing my webserver, when trying to ping the router 192.168.0.1 it says “Host unreachable”. I checked my interfaces and it says bond0 is DOWN.<\/p>\n Tried to set it up manually but it didn’t work. In /etc/network/interfaces eth0 and eth1 are slaves of bond0, but when running I don’t know if those interfaces are required to be UP for the webserver to work properly, neither how it looked like before rebooting. No cable or hardware changes were made.<\/p>\n I’m using ubuntu 12.04, and unfortunately I can’t update it now. I just have to fix this as soon as possible.<\/p>\n Output of Content of /etc/network/interfaces:<\/p>\n Check the physical network connections. eth1 is showing as down - is it connected to the switch, is the switch port up?<\/p>\n eth0 seems to have disappeared - I suspect it is “rename2” - so perhaps try renaming that to eth0.<\/p>\n Has anything on the switch changed? Thank you for your reply! I didn’t set this server up, but I believe eth0 and eth1 doesn’t work simultaneously. I tried removing the rj45 cable from the network card it was plugged in and plugging it in another network card that had nothing plugged in it.<\/p>\n I believe the first one was the former eth0 and the one I connected is eth1, since eth0 is still DOWN and eth1 got UP. Also bond0 got UP as well, and now it looks like it’s working properly again.<\/p>\n If eth0 was actually changed to rename2 and lost its settings, how would I know? And if so, how to set it up correctly again?<\/p>\n I checked the udev rules, maybe it makes more sense to you:<\/p>\nip a<\/code> eth1 is also DOWN and eth0 is missing.<\/p>\n
ip a<\/code>:<\/p>\n
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN\n\tlink/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n\tinet 127.0.0.1/8 scope host lo\n\t\tvalid_lft forever preferred_lft forever\n\tinet6 ::1/128 scope host\n\t\tvalid_lft forever preferred_lft forever\n2: rename2: <BROADCAST, MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000\n\tlink/ether f8:1a:67:04:57:b8 brd ff:ff:ff:ff:ff:ff\n\tinet6 fe80:: fa1a:67ff:fe04:57b8/64 scope link\n\t\tvalid_lft forever preferred_1ft forever\n3: eth1: <NO-CARRIER, BROADCAST, MULTICAST, SLAVE, UP> mtu 1500 qdisc pfifo_fast master bond0 state DOWN qlen 1000\n\tlink/ether f8:1a:67:04:57:b8 brd ff:ff:ff:ff:ff:ff\n4: eth2: <BROADCAST, MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000\n\tlink/ether f8:1a:67:04:a1:d4 brd ff:ff:ff:ff:ff:ff\n\tinet 179.125.210.147/29 brd 179.125.210.151 scope global eth2\n\t\tvalid_lft forever preferred_lft forever\n\tinet6 fe80::fa1a:67ff:fe04:a1d4/64 scope link\n\t\tvalid_lft forever preferred_lft forever\n5: eth3: <BROADCAST, MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000\n\tlink/ether 94:de:80:6d:8b:b5 brd ff:ff:ff:ff:ff:ff\n\tinet 10.20.4.18/24 brd 10.20.4.255 scope global eth3\n\t\tvalid_lft forever preferred_lft forever\n\tinet6 fe80::96de:80ff:fe6d:8bb5/64 scope link\n\t\tvalid_lft forever preferred_lft forever\n6: eth4: <NO-CARRIER, BROADCAST, MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000\n\tlink/ether 00:11:0a:e9:bb:ff brd ff:ff:ff:ff:ff:ff\n11: bond0: <NO-CARRIER, BROADCAST, MULTICAST, MASTER, UP> mtu 1500 qdisc noqueue state DOWN\n\tlink/ether f8:1a:67:04:57:b8 brd ff:ff:ff:ff:ff:ff\n\tinet 192.168.0.18/24 brd 192.168.0.255 scope global bond0\n\tvalid_lft forever preferred_lft forever\n<\/code><\/pre>\n
# This file describes the network interfaces available on your system\n# and how to activate then. For more information, see interfaces (5).\n\n# The loopback network interface\nauto lo\niface lo inet loopback\n\n# The primary network interface\nauto eth2\niface eth2 inet static\naddress 179.125.210.147\nnetmask 255.255.255.248\ngateway 179.125.210.145\n\n# The primary network interface\nauto eth3\niface eth3 inet static\naddress 10.20.4.18\nnetmask 255.255.255.0\n\nauto eth0\niface eth0 inet manual\nbond-master bond0\n\nauto eth1\niface eth1 inet manual\nbond-master bond0\n\n#auto eth2\n#iface eth2 inet manual\n#bond-master bond0\n\nauto bond0\niface bond0 inet static\naddress 192.168.0.18\nnetmask 255.255.255.0\nbond-mode 4\nbond-miimon 100\nbond-lacp-rate 1\nbond-slaves eth0 eth1\n<\/code><\/pre>","upvoteCount":3,"answerCount":3,"datePublished":"2025-02-19T18:16:22.576Z","author":{"@type":"Person","name":"finemustache","url":"https://community.spiceworks.com/u/finemustache"},"suggestedAnswer":[{"@type":"Answer","text":"
ip a<\/code> eth1 is also DOWN and eth0 is missing.<\/p>\n
ip a<\/code>:<\/p>\n
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN\n\tlink/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n\tinet 127.0.0.1/8 scope host lo\n\t\tvalid_lft forever preferred_lft forever\n\tinet6 ::1/128 scope host\n\t\tvalid_lft forever preferred_lft forever\n2: rename2: <BROADCAST, MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000\n\tlink/ether f8:1a:67:04:57:b8 brd ff:ff:ff:ff:ff:ff\n\tinet6 fe80:: fa1a:67ff:fe04:57b8/64 scope link\n\t\tvalid_lft forever preferred_1ft forever\n3: eth1: <NO-CARRIER, BROADCAST, MULTICAST, SLAVE, UP> mtu 1500 qdisc pfifo_fast master bond0 state DOWN qlen 1000\n\tlink/ether f8:1a:67:04:57:b8 brd ff:ff:ff:ff:ff:ff\n4: eth2: <BROADCAST, MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000\n\tlink/ether f8:1a:67:04:a1:d4 brd ff:ff:ff:ff:ff:ff\n\tinet 179.125.210.147/29 brd 179.125.210.151 scope global eth2\n\t\tvalid_lft forever preferred_lft forever\n\tinet6 fe80::fa1a:67ff:fe04:a1d4/64 scope link\n\t\tvalid_lft forever preferred_lft forever\n5: eth3: <BROADCAST, MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000\n\tlink/ether 94:de:80:6d:8b:b5 brd ff:ff:ff:ff:ff:ff\n\tinet 10.20.4.18/24 brd 10.20.4.255 scope global eth3\n\t\tvalid_lft forever preferred_lft forever\n\tinet6 fe80::96de:80ff:fe6d:8bb5/64 scope link\n\t\tvalid_lft forever preferred_lft forever\n6: eth4: <NO-CARRIER, BROADCAST, MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000\n\tlink/ether 00:11:0a:e9:bb:ff brd ff:ff:ff:ff:ff:ff\n11: bond0: <NO-CARRIER, BROADCAST, MULTICAST, MASTER, UP> mtu 1500 qdisc noqueue state DOWN\n\tlink/ether f8:1a:67:04:57:b8 brd ff:ff:ff:ff:ff:ff\n\tinet 192.168.0.18/24 brd 192.168.0.255 scope global bond0\n\tvalid_lft forever preferred_lft forever\n<\/code><\/pre>\n
# This file describes the network interfaces available on your system\n# and how to activate then. For more information, see interfaces (5).\n\n# The loopback network interface\nauto lo\niface lo inet loopback\n\n# The primary network interface\nauto eth2\niface eth2 inet static\naddress 179.125.210.147\nnetmask 255.255.255.248\ngateway 179.125.210.145\n\n# The primary network interface\nauto eth3\niface eth3 inet static\naddress 10.20.4.18\nnetmask 255.255.255.0\n\nauto eth0\niface eth0 inet manual\nbond-master bond0\n\nauto eth1\niface eth1 inet manual\nbond-master bond0\n\n#auto eth2\n#iface eth2 inet manual\n#bond-master bond0\n\nauto bond0\niface bond0 inet static\naddress 192.168.0.18\nnetmask 255.255.255.0\nbond-mode 4\nbond-miimon 100\nbond-lacp-rate 1\nbond-slaves eth0 eth1\n<\/code><\/pre>","upvoteCount":3,"datePublished":"2025-02-19T18:16:22.742Z","url":"https://community.spiceworks.com/t/ubuntu-webserver-bond0-interface-down-after-reboot/1177103/1","author":{"@type":"Person","name":"finemustache","url":"https://community.spiceworks.com/u/finemustache"}},{"@type":"Answer","text":"
\nboth physical nic ports eth0 and eth1 are part of a bond which is configured for lacp - therefore the switch must be configured for a LAG bond.<\/p>","upvoteCount":2,"datePublished":"2025-02-19T18:36:41.519Z","url":"https://community.spiceworks.com/t/ubuntu-webserver-bond0-interface-down-after-reboot/1177103/2","author":{"@type":"Person","name":"matt7863","url":"https://community.spiceworks.com/u/matt7863"}},{"@type":"Answer","text":"# You can modify it, as long as you keep each rule on a single\n# line, and change only the value of the NAME= key.\n\n# PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 (r8169)\nSUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"64:70:02:00:23:e3\", ATTR{dev_id}==\"0x0\", ATTR{type}==\"1\", KERNEL==\"eth*\", NAME=\"eth0\"\n\n# PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0 (r8169)\nSUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"f8:1a:67:04:57:b8\", ATTR{dev_id}==\"0x0\", ATTR{type}==\"1\", KERNEL==\"eth*\", NAME=\"eth1\"\n\n# PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:1c.3/0000:04:00.0 (r8169)\nSUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"f8:1a:67:04:a1:d4\", ATTR{dev_id}==\"0x0\", ATTR{type}==\"1\", KERNEL==\"eth*\", NAME=\"eth2\"\n\n# PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:1c.5/0000:06:00.0/0000:07:00.0 (tg3)\nSUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"00:11:0a:e9:bb:ff\", ATTR{dev_id}==\"0x0\", ATTR{type}==\"1\", KERNEL==\"eth*\", NAME=\"eth4\"\n\n# PCI device 0x1969:/sys/devices/pci0000:00/0000:00:1c.6/0000:08:00.0 (alx)\nSUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"94:de:80:6d:8b:b5\", ATTR{dev_id}==\"0x0\", ATTR{type}==\"1\", KERNEL==\"eth*\", NAME=\"eth3\"\n<\/code><\/pre>","upvoteCount":0,"datePublished":"2025-02-19T19:23:44.802Z","url":"https://community.spiceworks.com/t/ubuntu-webserver-bond0-interface-down-after-reboot/1177103/3","author":{"@type":"Person","name":"finemustache","url":"https://community.spiceworks.com/u/finemustache"}}]}}