一块网卡绑定多个IP地址
2011-10-23 00:00
197 查看
Ubuntu版本
常常我们有需要一个网卡象windows一样设置多个IP。
下面我们看看在ubuntu下怎么样做.
我们先打开网络接口的文件
sudo gedit /etc/network/interfaces
照上边eth0添加eth0:0
auto eth0
iface eth0 inet static
name Ethernet Lan card
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
auto eth0:0
iface eth0:0 inet static
name Ethernet
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
重启服务
sudo /etc/init.d/networking restart
常常我们有需要一个网卡象windows一样设置多个IP。
下面我们看看在ubuntu下怎么样做.
我们先打开网络接口的文件
sudo gedit /etc/network/interfaces
照上边eth0添加eth0:0
auto eth0
iface eth0 inet static
name Ethernet Lan card
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
auto eth0:0
iface eth0:0 inet static
name Ethernet
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
重启服务
sudo /etc/init.d/networking restart
相关文章推荐
- 一块网卡绑定多个IP地址(内含Redhat和Ubuntu
- Linux一块网卡绑定2个IP地址
- Linux系统下一块网卡绑定多个Ip地址方法
- 如何给同一块网卡绑定多个IP地址
- 一块网卡绑定多个IP地址(内含Redhat和Ubuntu)
- 一个网卡绑定多个ip地址
- 老男孩教育每日一题-2017年3月16日: linux网络配置中如何给一块网卡添加多个IP地址
- 为一个网卡绑定多个IP地址
- Linux系统下一块网卡配置多个ip地址方法
- 转 -- Linux下实现一个网卡绑定多个IP地址
- CentOS 6.9下双网卡绑定单个IP地址及装网卡绑定到一个网桥(转)
- windows 2003一个网卡绑定多个IP地址
- linux系统双网卡绑定单个IP地址
- VMware 增加了一块网卡 不能获取ip地址问题
- Linux下一块网卡设置多个IP地址
- linux系统单网卡绑定多个IP地址 推荐
- 一块网卡配2IP地址
- 一个网卡绑定多个IP地址
- Linux系统下一块网卡配置多个Ip地址方法
- linux系统单网卡绑定多个IP地址