请问一下15.10怎样手动设定静态IP
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: 请问一下15.10怎样手动设定静态IP
- 如使用 NetworkManager
https://help.ubuntu.com/community/Netwo ... IP_address
http://askubuntu.com/a/368517
http://wilson18.com/topic/35-how-to-set ... nd-ubuntu/
例
- 如使用 ifupdown 参考...users should select the Manual method on the IPv4 or IPv6 tab in NetworkManager to assign multiple IP address to the same interface.
https://help.ubuntu.com/community/Netwo ... IP_address
http://askubuntu.com/a/368517
http://wilson18.com/topic/35-how-to-set ... nd-ubuntu/
例
代码: 全选
auto eth0
iface eth0 inet static
address 192.168.1.14
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1
auto eth0:1
iface eth0:1 inet static
address 192.168.1.24
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.1
gateway 192.168.1.1
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 请问一下15.10怎样手动设定静态IP
把 #2 的 eth0 替換為 enp1s0 即可 (注意 一般是小寫)15.10的网卡名称变了ENP1S0去了