[olug] Two IP addresses for one nmcli command?
Dave Thacker
dthacker9 at gmail.com
Mon Jun 14 17:01:52 CDT 2021
Centos 8 on a VMware VM.
I'm practicing my nmcli-fu for the exam. I created an "extra" virtual NIC
on the VM. It shows up as device ens161. I used nmcli like this:
nmcli connection add ifname ens161 ipv4.10.1.21.60/16 ipv4.gateway 10.1.1.1
ipv4.dns 8.8.8.8 type ethernet
I got an extra dynamic address and my requested address is secondary. It
still works, but I'm curious how this happened. I also wonder if RH will
think this is a good answer.
ens161: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group
default qlen 1000
inet 10.1.0.14/16 brd 10.1.255.255 scope global dynamic noprefixroute ens161
inet 10.1.21.60/16 brd 10.1.255.255 scope global secondary noprefixroute
ens161
Dave
--
Dave Thacker
More information about the OLUG
mailing list