dhclient adding second address to desktop with static IP
- From: Mike Fleetwood <mike fleetwood googlemail com>
- To: networkmanager-list gnome org
- Subject: dhclient adding second address to desktop with static IP
- Date: Wed, 7 Aug 2019 12:19:41 +0100
Hi,
On my CentOS 7 / XFCE desktop, I've setup a static IP address using NM.
However dhclient is using DHCP and adding a second IP address. How do
I troubleshoot this and turn it off?
Thanks,
Mike
In nm-connection-editor for the ethernet: enp5s0 the IPv4 settings are:
Method: Manual
Address Netmask Gateway
192.168.1.2 24 192.168.1.1
But the NIC has two addresses:
# ip address list enp5s0
2: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
link/ether 48:5b:39:75:42:bc brd ff:ff:ff:ff:ff:ff
inet 192.168.1.191/24 brd 192.168.1.255 scope global noprefixroute
dynamic enp5s0
valid_lft 33750sec preferred_lft 33750sec
inet 192.168.1.2/24 brd 192.168.1.255 scope global secondary
noprefixroute enp5s0
valid_lft forever preferred_lft forever
inet6 fe80::39a1:ab53:fa00:828c/64 scope link noprefixroute
valid_lft forever preferred_lft forever
The 192.168.1.191 address having been added by dhclient.
# egrep 'dhclient|nm|NetworkManager|Network Manager' /var/log/messages
Aug 4 05:45:15 rockover dhclient[20511]: DHCPREQUEST on enp5s0 to
192.168.1.1 port 67 (xid=0xc298fce)
Aug 4 05:45:15 rockover dhclient[20511]: DHCPACK from 192.168.1.1
(xid=0xc298fce)
Aug 4 05:45:16 rockover NetworkManager[1216]: <info>
[1564893916.0091] dhcp4 (enp5s0): address 192.168.1.191
Aug 4 05:45:16 rockover NetworkManager[1216]: <info>
[1564893916.0095] dhcp4 (enp5s0): plen 24 (255.255.255.0)
Aug 4 05:45:16 rockover NetworkManager[1216]: <info>
[1564893916.0095] dhcp4 (enp5s0): gateway 192.168.1.1
Aug 4 05:45:16 rockover NetworkManager[1216]: <info>
[1564893916.0095] dhcp4 (enp5s0): lease time 43200
Aug 4 05:45:16 rockover NetworkManager[1216]: <info>
[1564893916.0096] dhcp4 (enp5s0): nameserver '192.168.1.1'
Aug 4 05:45:16 rockover NetworkManager[1216]: <info>
[1564893916.0096] dhcp4 (enp5s0): domain name 'lan'
Aug 4 05:45:16 rockover NetworkManager[1216]: <info>
[1564893916.0096] dhcp4 (enp5s0): state changed bound -> bound
Aug 4 05:45:16 rockover dbus[1169]: [system] Activating via systemd:
service name='org.freedesktop.nm_dispatcher'
unit='dbus-org.freedesktop.nm-dispatcher.service'
Aug 4 05:45:16 rockover systemd: Starting Network Manager Script
Dispatcher Service...
Aug 4 05:45:16 rockover dhclient[20511]: bound to 192.168.1.191 --
renewal in 18355 seconds.
Aug 4 05:45:16 rockover dbus[1169]: [system] Successfully activated
service 'org.freedesktop.nm_dispatcher'
Aug 4 05:45:16 rockover nm-dispatcher: req:1 'dhcp4-change' [enp5s0]:
new request (4 scripts)
Aug 4 05:45:16 rockover systemd: Started Network Manager Script
Dispatcher Service.
Aug 4 05:45:16 rockover nm-dispatcher: req:1 'dhcp4-change' [enp5s0]:
start running ordered scripts...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]