User Tools

Site Tools


wiki:static_and_dynamic_ip_on_a_single_interface

Differences

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

Link to this comparison view

Next revision
Previous revision
wiki:static_and_dynamic_ip_on_a_single_interface [2017/10/16 21:21] – created walkeradminwiki:static_and_dynamic_ip_on_a_single_interface [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Static and Dynamic IP on a Single Interface ======
 +<color #db5f0b>Oct 2017</color>
 +\\ 
 +\\ 
  
 +----
  
- +===== Introduction ===== 
- +During the configuration of an MFEL (CentOS 7.2, MFEL 7x) I suddenly lost connectionAfter some investigation i noticed that my control interface had two addressesWhen I did an <color #ed1c24>ip a</color> on the interfaceI saw something similar to the section below. 
- +\\  
-1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN +<file>
-    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 +
-    inet 127.0.0.1/8 scope host lo +
-       valid_lft forever preferred_lft forever +
-2: ens513f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 +
-    link/ether 00:1e:67:f2:75:66 brd ff:ff:ff:ff:ff:ff +
-    inet 10.0.3.67/24 brd 10.0.3.255 scope global ens513f0 +
-       valid_lft forever preferred_lft forever +
-3: ens513f1: <BROADCAST,MULTICASTmtu 1500 qdisc noop state DOWN qlen 1000 +
-    link/ether 00:1e:67:f2:75:67 brd ff:ff:ff:ff:ff:ff +
-4: ens513f2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 +
-    link/ether 00:1e:67:f2:75:68 brd ff:ff:ff:ff:ff:ff +
-5: ens513f3: <BROADCAST,MULTICASTmtu 1500 qdisc noop state DOWN qlen 1000 +
-    link/ether 00:1e:67:f2:75:69 brd ff:ff:ff:ff:ff:ff+
 6: enp4s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 6: enp4s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
     link/ether 00:1e:67:eb:69:4c brd ff:ff:ff:ff:ff:ff     link/ether 00:1e:67:eb:69:4c brd ff:ff:ff:ff:ff:ff
     inet 10.43.3.67/19 brd 10.43.31.255 scope global enp4s0f0     inet 10.43.3.67/19 brd 10.43.31.255 scope global enp4s0f0
        valid_lft forever preferred_lft forever        valid_lft forever preferred_lft forever
-7: enp4s0f3: <BROADCAST,MULTICASTmtu 1500 qdisc noop state DOWN qlen 1000 +    inet 10.43.2.244/22 brd 10.43.2.254 scope dynamic enp4s0f0 
-    link/ether 00:1e:67:eb:69:4d brd ff:ff:ff:ff:ff:ff +       valid_lft forever preferred_lft forever 
 +</file
 +\\  
 +I tried to add <color #ed1c24>NM_Controlled=no</color> to the interface configuration file, but that didn't help. So in the end I had to disable the built in Network Manager, which to be honest we don't use because our interfaces are always set to Static. 
 +\\  
 +\\  
 +==== Disable Network Manager ==== 
 +\\  
 +To disable the Network Manager, at the CLI, enter the following
 +\\  
 +<file> 
 +systemctl disable NetworkManager.service 
 +systemctl stop NetworkManager.service 
 +systemctl restart network 
 +</file> 
 +\\  
 +I did a reboot and confirmed that I now only had the Static IP that I had configured in my interface configuration file (/etc/sysconfig/network-scripts/ifcfg-enp4s0f0) 
 +\\  
 +\\ 
wiki/static_and_dynamic_ip_on_a_single_interface.1508185270.txt.gz · Last modified: 2023/03/09 22:35 (external edit)