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

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
emcl123
帖子: 14
注册时间: 2015-04-08 0:29
系统: 14.10

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

#1

帖子 emcl123 »

请问一下15.10一个网卡怎样手动设定多个静态IP,
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

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

#2

帖子 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
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
emcl123
帖子: 14
注册时间: 2015-04-08 0:29
系统: 14.10

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

#3

帖子 emcl123 »

15.10的网卡名称变了ENP1S0去了
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

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

#4

帖子 poloshiao »

15.10的网卡名称变了ENP1S0去了
把 #2 的 eth0 替換為 enp1s0 即可 (注意 一般是小寫)
回复