免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2134 | 回复: 1
打印 上一主题 下一主题

[系统管理] ubuntu的双网卡配置为什么会出现错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-06-09 17:49 |只看该作者 |倒序浏览
本帖最后由 心若寒江雪 于 2013-06-09 17:50 编辑

两块网卡 eth0 eth1,配置文件如下
interfaces:
  1. auto lo
  2. iface lo inet loopback

  3. # The primary network interface
  4. auto eth0
  5. iface eth0 inet static
  6.         address 192.168.211.196
  7.         netmask 255.255.255.0
  8.         gateway 192.168.211.1
  9.         dns-nameservers 202.106.0.20

  10. #the second eth1
  11. auto eth1
  12. iface eth1 inet static
  13.        address 192.168.212.196
  14.        netmask 255.255.255.0
  15.        gateway 192.168.212.1
复制代码

  1. root@ubuntu:/etc/network# ifdown eth1
  2. ifdown: interface eth1 not configured
  3. root@ubuntu:/etc/network# ifup eth1
  4. RTNETLINK answers: File exists
  5. Failed to bring up eth1.
复制代码

论坛徽章:
0
2 [报告]
发表于 2013-06-09 17:56 |只看该作者
额,,是不是先 /etc/init.d/networking restart 的?、、LZ可以试试,,,
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP