LinuxSir.cn,穿越时空的Linuxsir!

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

请教双网卡上网问题

[复制链接]
发表于 2004-9-25 10:51:24 | 显示全部楼层 |阅读模式
各位好,我想利用双网卡,hub,让其他3台机子上网
我机子原来有一张网卡,再添一张(型号大概不同)
启动机子
运行kudzu,配置好后
运行ifconfig eth1 up
修改/etc/network/interfaces
加上
auto eth1
iface eth1 inet static
address 192.168.1.1
network 192.168.1.0
netmask 255.255.255.0
重启
运行ping 192.168.1.1结果:
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.076 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.031 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.022 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.014 ms
...................
请问,我接下来怎么做?
我原来的网卡ip如下
auto eth0
iface eth0 inet static
        address 210.34.16.78
        netmask 255.255.255.0
        network 210.34.16.0
        broadcast 210.34.16.255
        gateway 210.34.16.1
#在这里又加了新网卡ip
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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