User Tools

Site Tools


wiki:mfel_misnamed_ip_ports

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:mfel_misnamed_ip_ports [2017/01/20 12:20] walkeradminwiki:mfel_misnamed_ip_ports [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 3: Line 3:
 \\  \\ 
 \\  \\ 
 +\\ 
 +
 +----
 +
 +<color purple>I initially thought this was a bug, but now realise this is normal operation, please see [[wiki:centos_7_interface_naming|this page]] for an explanation on the naming convention. This naming only occurs from CentOS 7 onwards.</color>
 +
 +----
 \\  \\ 
 After installing CentOS on to a server (software or appliance) you may have some IP ports that are incorrectly named. I have only seen this in CentOS v7.x and it mostly happens on SW only or appliance installs where the wrong CentOS .img file has been used (if you put the G7 CentOS7 build on a G6 for example). After installing CentOS on to a server (software or appliance) you may have some IP ports that are incorrectly named. I have only seen this in CentOS v7.x and it mostly happens on SW only or appliance installs where the wrong CentOS .img file has been used (if you put the G7 CentOS7 build on a G6 for example).
Line 66: Line 73:
     mv ifcfg-enp4s0f0 ifcfg-eth0     mv ifcfg-enp4s0f0 ifcfg-eth0
 \\  \\ 
-Repeat this process until all of the files have been renamed.+Repeat this process until all of the files have been renamed. <color red>(leave the ifcfg-lo file)</color> 
 +\\  
 +\\ 
  
 +----
 +==== Edit the ifcfg-xxxxx files ====
 +\\ 
 +\\ 
 +The files will now need to be edited, and a few changes made to **each** file. Open the file ifcfg-eth0
 +\\ 
 +\\ 
 +<file>
 +TYPE=Ethernet
 +BOOTPROTO=dhcp
 +DEFROUTE=yes
 +IPV4_FAILURE_FATAL=no
 +IPV6INIT=yes
 +IPV6_AUTOCONF=yes
 +IPV6_DEFROUTE=yes
 +IPV6_FAILURE_FATAL=no
 +NAME=enp4s0f0
 +UUID=1c31d575-3a80-41c0-ad24-92be3d9b7b9e
 +DEVICE=enp4s0f0
 +ONBOOT=yes
 +PEERDNS=yes
 +PEERROUTES=yes
 +IPV6_PEERDNS=yes
 +IPV6_PEERROUTES=yes
 +</file>
 +\\ 
 +Add or Edit the following lines:
 +\\ 
 +\\ 
 +DEVICE=eth0 <color red>This should be the actual interface name, you don't have to change the DEVICE name</color>\\ 
 +HWADDR=00:1e:67:d8:a9:51 <color red>You can get the address from the ip a command.</color>\\ 
 +ONBOOT=yes <color red>If this is no, change it to yes</color>\\ 
 +\\ 
 +Make these changes for all of the files.
 +\\ 
 +\\ 
  
 +----
 +==== Reboot and Check ====
 +\\ 
 +Reboot the server, once logged back in, navigate to the folder with the Interface configuration files.
 +\\ 
 +    cd /etc/sysconfig/network-scripts
 +\\ 
 +Use <color red>ip a</color> to show the interfaces and their names.
 +\\ 
 +  * 2: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
 +  * 3: eth3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
 +  * 4: eth4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
 +  * 5: eth5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000
 +  * 6: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000
 +  * 7: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
 +\\ 
 +If all is well you should now have eth0, eth1 etc for interface names.
 +\\ 
 +\\ 
wiki/mfel_misnamed_ip_ports.1484914826.txt.gz · Last modified: 2023/03/09 22:35 (external edit)