LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 835|回复: 1

请问在debian etch下有什么网络配置工具呀?

[复制链接]
发表于 2007-3-1 16:54:43 | 显示全部楼层 |阅读模式
请问在debian etch下有什么网络配置工具呀?我想给网卡指定两个IP该怎么弄呀?谢谢!
dpkg-reconfigure etherconf好像不能用呢。
 楼主| 发表于 2007-3-1 19:59:46 | 显示全部楼层
搞定,哈哈,这下可以用另外一台linux服务器的打印机了。cupsys

修改 /etc/network/interfaces



  1. # The loopback network interface
  2. auto lo
  3. iface lo inet loopback

  4. # The primary network interface
  5. auto eth0
  6. iface eth0 inet static
  7. address 10.10.45.1
  8. netmask 255.255.255.0
  9. broadcast 10.10.45.255
  10. network 10.10.45.0
  11. gateway 10.10.45.254

  12. auto eth0:0
  13. iface eth0:0 inet static
  14. address 10.10.45.2
  15. netmask 255.255.255.0
  16. broadcast 10.10.45.255
  17. network 10.10.45.0
  18. #eth0:0这里不能设网关的..

  19. 修改/etc/network/run/ifstate
  20. lo=lo
  21. eth0=eth0
  22. eth0:0=eth0:0

  23. 重启网络服务 /etc/init.d/networking restart

复制代码





论坛不能搜索了真是不爽呀,用搜索引擎搜索出来的东西其实大部分都是linuxsir出来的。哎
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表