请问一下15.10怎样手动设定静态IP
发表于 : 2015-12-27 22:23
请问一下15.10一个网卡怎样手动设定多个静态IP,
- 如使用 ifupdown 参考...users should select the Manual method on the IPv4 or IPv6 tab in NetworkManager to assign multiple IP address to the same interface.
代码: 全选
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
把 #2 的 eth0 替換為 enp1s0 即可 (注意 一般是小寫)15.10的网卡名称变了ENP1S0去了