文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>【应用与技巧】Ubuntu 下网卡的配置(单网卡双IP设..

【应用与技巧】Ubuntu 下网卡的配置(单网卡双IP设..

时间:2010-09-14  来源:juexun

ubuntu下一个网卡设置多个IP
要加一个 192.168.0.111 的 ip
sudo ifconfig eth0:0 192.168.0.111 up
就搞定了。

如果需要开机自动绑定的话,
就写到 /etc/network/interfaces 中,仿照 eth0 写个 eth0:0

auto eth0:0
iface eth0 inet static
address 192.168.0.5
netmask 255.255.255.0
gateway 192.168.0.1

auto eth0:1

iface eth0:0 inet static
address 192.168.0.25
netmask 255.255.255.0
gateway 192.168.0.1

iface eth0:1 inet static
address 192.168.0.36
netmask 255.255.255.0
gateway 192.168.0.1

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载