/etc/network/interfaces 中查看现有IP信息
配置文件为只读文件
修改后为
原有内容为
auto lo
iface lo net loopback
更改后的信息为
auto lo
ifacelonet loopback
auto ens1
iface ens1 inet static
address ***.***.***.***
network 255.255.255.0
gatewat ***.***.***.***
/etc/network/interfaces 中查看现有IP信息
配置文件为只读文件
修改后为
原有内容为
auto lo
iface lo net loopback
更改后的信息为
auto lo
ifacelonet loopback
auto ens1
iface ens1 inet static
address ***.***.***.***
network 255.255.255.0
gatewat ***.***.***.***
本文标题:ubuntu更改IP地址
本文链接:https://www.haomeiwen.com/subject/xzhyjxtx.html
网友评论