【linux】debian修改网卡IP
#修改debian网络配置文件vim /etc/network/interfaces#修改为如下内容source /etc/network/interfaces.d/*auto loiface lo inet loopback#网卡1auto eth0iface eth0 inet dhcp#网卡2auto eth1iface eth1 inet staticaddr...
·
#修改debian网络配置文件
vim /etc/network/interfaces
#修改为如下内容
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
#网卡1
auto eth0
iface eth0 inet dhcp
#网卡2
auto eth1
iface eth1 inet static
address 192.168.100.100
netmask 255.255.255.0
#gateway 192.168.100.254
network 192.168.100.0
broadcase 192.168.100.255
dns-nameservers 61.128.114.133
#重启网卡
systemctl restart networking
更多推荐
已为社区贡献6条内容
所有评论(0)