我有这个接口,带有 DHCP 和一些静态 IP:
$ ip addr
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether e0:d5:5e:13:19:d9 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.208/24 scope global enp3s0
valid_lft forever preferred_lft forever
inet 192.168.88.87/24 scope global enp3s0
valid_lft forever preferred_lft forever
inet 192.168.1.15/24 brd 192.168.1.255 scope global secondary enp3s0
valid_lft forever preferred_lft forever
inet6 fe80::e2d5:5eff:fe13:19d9/64 scope link
valid_lft forever preferred_lft forever
例如 192.168.88.87
当我失去互联网连接时,我尝试用这个命令恢复:
sudo dhclient -r enp3s0 && sudo dhclient enp3s0
但是,这会从接口中删除我的所有静态 IP:
$ ip addr
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether e0:d5:5e:13:19:d9 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.208/24 scope global enp3s0
valid_lft forever preferred_lft forever
inet6 fe80::e2d5:5eff:fe13:19d9/64 scope link
valid_lft forever preferred_lft forever
有什么想法可以在不丢失我的静态 IP 的情况下更新 DHCP 租约,或者之后必须手动添加它们?