Red Hat networkmanager

From Teknologisk videncenter
Jump to: navigation, search

add new NIC

New NIC not recognized by nm

 ls /etc/NetworkManager/system-connections/
enp0s3.nmconnection

[root@localhost ~]# nmcli
enp0s3: connected to enp0s3
        "Intel 82540EM"
        ethernet (e1000), 08:00:27:D5:FB:EE, hw, mtu 1500
        inet4 192.168.56.108/24
        route4 192.168.56.0/24 metric 100
        inet6 fe80::a00:27ff:fed5:fbee/64
        route6 fe80::/64 metric 1024
...

enp0s8: disconnected
        "Intel 82540EM"
        ethernet (e1000), 08:00:27:96:8A:26, hw, mtu 1500

Add NIC to nm

[root@localhost ~]# nmcli device connect enp0s8
Device 'enp0s8' successfully activated with '2a585174-736d-4b05-85ca-54e0e4469827'.

Check

[root@localhost ~]# nmcli
enp0s8: connected to enp0s8
        "Intel 82540EM"
        ethernet (e1000), 08:00:27:96:8A:26, hw, mtu 1500
        ip4 default
        inet4 10.0.2.4/24
        route4 10.0.2.0/24 metric 101
        route4 default via 10.0.2.1 metric 101
        inet6 fe80::6096:bc9c:fc7e:1edd/64
        route6 fe80::/64 metric 1024

enp0s3: connected to enp0s3
        "Intel 82540EM"
        ethernet (e1000), 08:00:27:D5:FB:EE, hw, mtu 1500
        inet4 192.168.56.108/24
        route4 192.168.56.0/24 metric 100
        inet6 fe80::a00:27ff:fed5:fbee/64
        route6 fe80::/64 metric 1024