当前位置: 资讯 > 推荐  > 云服务器 > 服务器 > debian

debian设置IP

阅读量;

设置ip/etc/network/interfaces1改为如下auto eth0iface eth0 inet staticaddress 192.168.0.190gateway 192.168.0.1netmask 255.255.255.012345address:IP地址gateway:网关netmask:子网掩码auto eth0:开机自启iface eth0 inet static: 静态ip设置dns/etc/resolv.con…

设置ip

/etc/network/interfaces

改为如下

auto eth0 iface eth0 inet static address 192.168.0.190 gateway 192.168.0.1 netmask 255.255.255.0

address:IP地址

gateway:网关

netmask:子网掩码

auto eth0:开机自启

iface eth0 inet static: 静态ip

设置dns

/etc/resolv.conf

改为如下

nameserver 223.5.5.5 nameserver 192.168.0.1

重启并应用

systemctl restart networking


————————————————


相关资讯

    暂无相关的数据...
<%csharp%>