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:27] – [Edit the ifcfg-xxxxx files] 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 96: Line 103:
 </file> </file>
 \\  \\ 
 +Add or Edit the following lines:
 \\  \\ 
-Add the following lines: 
-\\  
-\\  
-DEVICE=eth0 <color red>This should be the actual interface name, you don't have to change the DEVICE name</color red> 
-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> 
 \\  \\ 
 +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. Make these changes for all of the files.
Line 110: Line 115:
  
 ---- ----
 +==== 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.1484915222.txt.gz · Last modified: 2023/03/09 22:35 (external edit)