Article 5F7SE [SOLVED] network device has 2 ip addresses instead of one

[SOLVED] network device has 2 ip addresses instead of one

by
linuxUser247
from LinuxQuestions.org on (#5F7SE)
enp2s0f0 uses 2 IP addresses. I am using Ubuntu server 20.10 and want to set a static IP for enp2s0f0 and get rid of the DHCP's address. I also have docker installed.

Code:IPv4 address for br-f6f31a2058ad: 172.18.0.1
IPv4 address for docker0: 172.17.0.1
IPv4 address for enp2s0f0: 10.0.1.101
IPv4 address for enp2s0f0: 10.0.1.5
what i did:

i configured a static ip in cat /etc/netplan/99_config.yaml

Code:network:
version: 2
renderer: networkd
ethernets:
enp2s0f0:
addresses:
- 10.0.1.101/24
gateway4: 10.0.1.1
nameservers:
search: [dude]
addresses: [10.0.1.101]Code:ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 20:89:84:74:47:34 brd ff:ff:ff:ff:ff:ff
inet 10.0.1.101/24 brd 10.0.1.255 scope global enp2s0f0
valid_lft forever preferred_lft forever
inet 10.0.1.5/24 brd 10.0.1.255 scope global secondary dynamic enp2s0f0
valid_lft 3464sec preferred_lft 3464sec
inet6 fe80::2289:84ff:fe74:4734/64 scope link
valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 1c:3e:84:7b:eb:fd brd ff:ff:ff:ff:ff:ffwhat i did:

- i already rebooted the device
- `/etc/network/interfaces` is an empty filelatest?d=yIl2AUoC8zA latest?i=NcE4YrMygT4:U90kB_AQpCk:F7zBnMy latest?i=NcE4YrMygT4:U90kB_AQpCk:V_sGLiP latest?d=qj6IDK7rITs latest?i=NcE4YrMygT4:U90kB_AQpCk:gIN9vFwNcE4YrMygT4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments