Ask the Community
Groups
NICs not functioning after a motherboard replacement - Connect IT Community | Kaseya
<main> <article class="userContent"> <h2 data-id="summary"><strong>SUMMARY</strong></h2> <p>Modifying NIC Settings for Motherboard Replacement to address network connection issues</p> <h2 data-id="issue"><strong>ISSUE</strong></h2> <p>After a motherboard replacement, eth0 and eth1 have disappeared with eth2 and eth3 are present.</p> <h2 data-id="resolution"><strong>RESOLUTION</strong></h2> <p><b>1.</b> Run ifconfig to show current NIC's being used.<br><br> eth2 Link encap:Ethernet HWaddr 00:BB:1A:2B:C3:D4<br> inet addr:172.100.1.0 Bcast:172.100.1.255 Mask:255.255.255.0<br> inet6 addr: fe80::225:90ff:fe9a:cdcc/64 Scope:Link<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:9444387435 errors:0 dropped:132 overruns:0 frame:0<br> TX packets:1314219125 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000<br> RX bytes:13805476062408 (12.5 TiB) TX bytes:390710362058 (363.8 GiB)<br> Interrupt:169 Memory:fb4e0000-fb500000<br><br>eth3 Link encap:Ethernet HWaddr 00:CC:1A:2B:C3:D4<br> inet addr:172.100.1.1 Bcast:172.100.1.255 Mask:255.255.255.0<br> inet6 addr: fe80::225:90ff:fe9a:dcdd/64 Scope:Link<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:9444387435 errors:0 dropped:132 overruns:0 frame:0<br> TX packets:1314219125 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000<br> RX bytes:13805476062408 (12.5 TiB) TX bytes:390710362058 (363.8 GiB)<br> Interrupt:169 Memory:fb4e0000-fb500000<br><br><b>2.</b> Verify the following file by running the command to see what the system has as the NIC's:<br><br>vi /etc/udev/rules.d/70-persistent-net.rules (file name varies, try this 1st)<br><br><u>Output below:</u><br><br># PCI device 0x8086:0x10d3 (e1000e)<br>SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:90:ea:39:80", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"<br><br># PCI device 0x8086:0x10d3 (e1000e)<br>SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:90:ea:39:81", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"<br><br><br># PCI device 0x8086:0x10d3 (e1000e)<br>SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:bb:1a:2b:c3:d4", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"<br><br># PCI device 0x8086:0x10d3 (e1000e)<br>SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:cc:1a:2b:c3:d4", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"<br><br><b>3.</b> Remove or Comment out the eth0 and eth1 lines from the file and rename eth2 and eth3 to eth0 and eth1.<br><br><b>4.</b> From command line type the following:<br><br>cd /etc/sysconfig/network-scripts/<br><br>ls<br><br><u>Output below:</u><br><br>ifcfg-eth2 ifdown ifdown-ippp ifdown-isdn ifdown-routes ifdown-tunnel ifup-bnep ifup-ippp ifup-ipx ifup-plusb ifup-routes ifup-tunnel net.hotplug route-eth2<br>ifcfg-eth3 ifdown-bnep ifdown-ipsec ifdown-post ifdown-sit ifup ifup-eth ifup-ipsec ifup-isdn ifup-post ifup-sit ifup-wireless network-functions<br>ifcfg-lo ifdown-eth ifdown-ipv6 ifdown-ppp ifdown-sl ifup-aliases ifup-ib ifup-ipv6 ifup-plip ifup-ppp ifup-sl init.ipv6-global network-functions-ipv6<br><br><b>5.</b> vi both "ifcfg-eth2" and "ifcfg-eth3":<br><br><u>Output below:</u><br><br># Intel Corporation 82574L Gigabit Network Connection<br>DEVICE=eth2<br>BOOTPROTO=none<br>HWADDR=00:BB:1A:2B:C3:D4<br>ONBOOT=yes<br>IPADDR=172.100.1.0<br>NETMASK=255.255.255.0<br>TYPE=Ethernet<br>USERCTL=no<br>IPV6INIT=no<br>PEERDNS=yes<br>DHCP_HOSTNAME=Recovery-***<br>GATEWAY=172.100.1.1<br>METRIC=0<br><br><b>6.</b> Copy "ifcfg-eth2" and "ifcfg-eth3" to "ifcfg-eth0" and "ifcfg-eth1"<br><br><b>7.</b> Change the file by using "vi" to meet the specifications of "ifcfg-eth0" and "ifcfg-eth1"<br><br><b>8.</b> Remove "ifcfg-eth2" and "ifcfg-eth3":<br><br>rm -rf ifcfg-eth2<br><br>rm -rf ifcfg-eth3<br><br><b>9.</b> View the "route-eth2" file and validate that the routing information is correct for the system:<br><br>cat route-eth2<br><br><u>Output below:</u><br><br>172.100.1.0/24 via 172.100.1.1 dev eth2 table eth2<br>default via 172.100.1.1 dev eth0 table eth2<br><br><b>10.</b> Change the name of the "route-eth2" file to "route-eth0" with the below command and then "vi" the file to change all "eth2" entries to "eth0":<br><br>mv route-eth2 route-eth0<br><br><b>11.</b> Reboot the system<br><br><b>12.</b> Once the system is back up, run ifconfig, and validate that the NIC's show "eth0" and "eth1"<br><br>eth0 Link encap:Ethernet HWaddr 00:BB:1A:2B:C3:D4<br> inet addr:172.100.1.0 Bcast:172.100.1.255 Mask:255.255.255.0<br> inet6 addr: fe80::225:90ff:fe9a:cdcc/64 Scope:Link<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:9444387435 errors:0 dropped:132 overruns:0 frame:0<br> TX packets:1314219125 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000<br> RX bytes:13805476062408 (12.5 TiB) TX bytes:390710362058 (363.8 GiB)<br> Interrupt:169 Memory:fb4e0000-fb500000<br><br>eth1 Link encap:Ethernet HWaddr 00:CC:1A:2B:C3:D4<br> inet addr:172.100.1.1 Bcast:172.100.1.255 Mask:255.255.255.0<br> inet6 addr: fe80::225:90ff:fe9a:dcdd/64 Scope:Link<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:9444387435 errors:0 dropped:132 overruns:0 frame:0<br> TX packets:1314219125 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000<br> RX bytes:13805476062408 (12.5 TiB) TX bytes:390710362058 (363.8 GiB)<br> Interrupt:169 Memory:fb4e0000-fb500000</p> <h2 data-id="notes"><strong>NOTES</strong></h2> <p></p> <p><b>Additional Resources:</b><br><br><u>/etc/udev/rules.d/70-persistent-net.rules</u> - <br><a rel="nofollow" href="/home/leaving?allowTrusted=1&target=http%3A%2F%2Fwww.linuxquestions.org%2Fquestions%2Flinux-networking-3%2Foverriding-etc-udev-rules-d-70-persistent-net-rules-903234%2F">http://www.linuxquestions.org/questions/linux-networking-3/overriding-etc-udev-rules-d-70-persistent-net-rules-903234/</a></p> <p><a rel="nofollow" href="/home/leaving?allowTrusted=1&target=http%3A%2F%2Funix.stackexchange.com%2Fquestions%2F110496%2Fcloned-linux-system-and-etc-udev-rules-d-70-persistent-net-rules">http://unix.stackexchange.com/questions/110496/cloned-linux-system-and-etc-udev-rules-d-70-persistent-net-rules</a><br><br><u>udev</u> - <br><a rel="nofollow" href="/home/leaving?allowTrusted=1&target=http%3A%2F%2Flinux.die.net%2Fman%2F8%2Fudev">http://linux.die.net/man/8/udev</a><br><br><a rel="nofollow" href="/home/leaving?allowTrusted=1&target=http%3A%2F%2Flinux.die.net%2Fman%2F7%2Fudev">http://linux.die.net/man/7/udev</a></p> </article> </main>