debian配置静态ip与DHCP
debian设置静态IP
vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.038
netmask 255.255.255.0
gateway 192.168.0.1
vi /etc/resol
debian设置静态IP
vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.038
netmask 255.255.255.0
gateway 192.168.0.1
vi /etc/resol