root@kali:# ifconfig enp0s17 up //启用网卡 root@kali:# ifconfig -a //查看IP root@kali:~# dhclient enp0s17 // 分配IP
1 2 3 4 5 6 7 8 9
cat /etc/netplan/00-installer-config.yaml # This is the network config written by 'subiquity' network: ethernets: enp0s3: dhcp4: true enp0s8: dhcp4: true version: 2