I've just installed the new debian 10.4.0-amd64-standard.
I configured the network interface ip to static (eth0):
iface eth0 inet static
address 10.1.1.41/24
gateway 10.1.1.1
dns-nameservers 10.1.1.20
But when I type ip addr
I get two ip addresses on the same interface.
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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:01:0a:09 brd ff:ff:ff:ff:ff:ff
inet 10.1.1.103/24 brd 10.1.1.255 scope global dynamic eth0
valid_lft 549236sec preferred_lft 549236sec
inet 10.1.1.41/24 brd 10.1.1.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet6 fe80::215:5dff:fe01:a09/64 scope link
valid_lft forever preferred_lft forever
What do I have to do to get rid of the DHCP IP "10.1.1.103"?
As requested output of ps aux | grep dhcp
:
root 381 0.0 0.2 9488 5736 ? Ss Aug12 0:00 /sbin/dhclient -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
root 12551 0.0 0.0 6076 828 pts/0 S+ 07:43 0:00 grep dhcp
After disabling the dhcp service. This shows up when I type ifup eth0
:
sudo ifup eth0
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/00:15:5d:01:0a:09
Sending on LPF/eth0/00:15:5d:01:0a:09
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 10.1.1.103 from 10.1.1.20
DHCPREQUEST for 10.1.1.103 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.1.1.103 from 10.1.1.20
bound to 10.1.1.103 -- renewal in 1523 seconds.
Looks like it is still requesting the dhcp for an ip.
ipdown eth0
before reload the new dataifup
andifdown