Can't change NIC address?
by kenw232 from LinuxQuestions.org on (#54N3V)
I went into the network connection in the GUI desktop and change my NIC to manual IP but it does not stick on reboot. This if or Tricia V 19 I guess.
eg.
Code:firewall(/etc/NetworkManager/system-connections): cat Eth2*
[connection]
id=Eth2 - Local Network
uuid=55baf3de-14e5-3937-aa71-359d257528fe
type=ethernet
autoconnect-priority=-999
permissions=
timestamp=1592173419
[ethernet]
mac-address=00:01:C0:25:69:F5
mac-address-blacklist=
[ipv4]
address1=192.168.2.159/24,192.168.2.1
dns=204.15.193.162;
dns-search=8.8.8.8;
method=manual
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=autoyet, still getting .160 from DHCP:
Code:enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.160 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::796f:8d1d:d2b6:2db7 prefixlen 64 scopeid 0x20<link>
ether 00:01:c0:25:69:f8 txqueuelen 1000 (Ethernet)
RX packets 1322 bytes 208537 (208.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1145 bytes 155437 (155.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Linux firewall 4.15.0-106-generic #107-Ubuntu SMP Thu Jun 4 11:27:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux


eg.
Code:firewall(/etc/NetworkManager/system-connections): cat Eth2*
[connection]
id=Eth2 - Local Network
uuid=55baf3de-14e5-3937-aa71-359d257528fe
type=ethernet
autoconnect-priority=-999
permissions=
timestamp=1592173419
[ethernet]
mac-address=00:01:C0:25:69:F5
mac-address-blacklist=
[ipv4]
address1=192.168.2.159/24,192.168.2.1
dns=204.15.193.162;
dns-search=8.8.8.8;
method=manual
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=autoyet, still getting .160 from DHCP:
Code:enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.160 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::796f:8d1d:d2b6:2db7 prefixlen 64 scopeid 0x20<link>
ether 00:01:c0:25:69:f8 txqueuelen 1000 (Ethernet)
RX packets 1322 bytes 208537 (208.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1145 bytes 155437 (155.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0Linux firewall 4.15.0-106-generic #107-Ubuntu SMP Thu Jun 4 11:27:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux