分页: 1 / 1

请问一下15.10怎样手动设定静态IP

发表于 : 2015-12-27 22:23
emcl123
请问一下15.10一个网卡怎样手动设定多个静态IP,

Re: 请问一下15.10怎样手动设定静态IP

发表于 : 2015-12-27 22:34
vickycq
- 如使用 NetworkManager
...users should select the Manual method on the IPv4 or IPv6 tab in NetworkManager to assign multiple IP address to the same interface.
Network_Configuration-NM-IPv4_Settings_Gnome3.png
- 如使用 ifupdown 参考
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

Re: 请问一下15.10怎样手动设定静态IP

发表于 : 2015-12-28 17:33
emcl123
15.10的网卡名称变了ENP1S0去了

Re: 请问一下15.10怎样手动设定静态IP

发表于 : 2015-12-28 19:28
poloshiao
15.10的网卡名称变了ENP1S0去了
把 #2 的 eth0 替換為 enp1s0 即可 (注意 一般是小寫)