LinuxSir.cn,穿越时空的Linuxsir!

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

双网卡设置的问题 ..[解决]

[复制链接]
发表于 2005-1-14 16:06:33 | 显示全部楼层 |阅读模式
root@LinuxFans qnlii # ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:E0:4C:F3:86:5F
          inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2183 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2363 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1124719 (1.0 Mb)  TX bytes:401311 (391.9 Kb)
          Interrupt:10 Base address:0xec00

root@LinuxFans qnlii # ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:0A:EB:01:FE:EA
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:5 Base address:0xe800


root@LinuxFans qnlii # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:4C:F3:86:5F
          inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2156 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2336 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1122869 (1.0 Mb)  TX bytes:399645 (390.2 Kb)
          Interrupt:10 Base address:0xec00

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:100 (100.0 b)  TX bytes:100 (100.0 b)

/etc/conf.d/net文件:

# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.1.70 broadcast 192.168.1.255 netmask 255.255.255.0"
iface_eth1="192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
gateway="eth0/192.168.1.1"


请问如何解决...?
:comp
发表于 2005-1-16 15:21:49 | 显示全部楼层
试试:
#ln -s /etc/init.d/net.eth0 /etc/init.d/net.eth1
#rc-update add net.eth1 default
代码的意思是把eth1 也设为 开机启用.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-16 15:55:38 | 显示全部楼层
谢谢lit40兄.我是按上面方法解决的.
回复 支持 反对

使用道具 举报

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

本版积分规则

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