2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000 link/ether 00:0c:29:3b:6c:de brd ff:ff:ff:ff:ff:ff altname enp2s1 inet 192.168.8.88/24 brd 192.168.8.255 scope global noprefixroute ens33 valid_lft forever preferred_lft forever inet6 fe80::d98c:3e8f:1be2:7172/64 scope link noprefixroute valid_lft forever preferred_lft forever
1
vim /etc/default/isc-dhcp-server
修改
1 2 3 4
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACESv4="" INTERFACESv6=""
为
1 2 3 4
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACESv4="ens33" # IP4DHCP网卡 INTERFACESv6="ens33" # IP6DHCP网卡