1. 控制台执行命令 sudo vi /etc/network/interfaces
配置自动获取ip:
auto eth0
iface eth0 inet dhcp
配置静态ip
auto eth0
iface eth0 inet static
address 192.168.33.201
netmask 255.255.255.0
gateway 192.168.33.1
1. 控制台执行命令 sudo vi /etc/network/interfaces
配置自动获取ip:
auto eth0
iface eth0 inet dhcp
配置静态ip
auto eth0
iface eth0 inet static
address 192.168.33.201
netmask 255.255.255.0
gateway 192.168.33.1