|
|
各位好,我想利用双网卡,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 |
|