Sep
20
打开配置文件
$ sudo vi /etc/network/interfaces
DHCP参数配置
Static IP (静态IP)参数配置
Restart the network
$ sudo /etc/init.d/networking restart
转载请注明出自 ,如是转载文则注明原出处,谢谢:)
RSS订阅地址: https://www.felix021.com/blog/feed.php 。
$ sudo vi /etc/network/interfaces
DHCP参数配置
引用
auto eth0
iface eth0 inet dhcp
iface eth0 inet dhcp
Static IP (静态IP)参数配置
引用
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
Restart the network
$ sudo /etc/init.d/networking restart
欢迎扫码关注:
转载请注明出自 ,如是转载文则注明原出处,谢谢:)
RSS订阅地址: https://www.felix021.com/blog/feed.php 。