- 论坛徽章:
- 0
|
linux(2块网卡,adsl上网)+2台win2k 底下是我的配置文件,请问我还需要什么使另外两台也能上网,谢谢!
DEVICE=eth1
IPADDR=192.168.1.254
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
BOOTPROTO=none
DEVICE=eth0
IPADDR=192.168.0.254
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
BOOTPROTO=none
HOSTNAME=test001
DOMAINNAME="test001.domain.com"
GATEWAY="192.168.0.254"
GATEWAY="eth0"
NETWORKING=yes
ONBOOT=YES
FORWARD_IPV4=true
/etc/hosts
192.168.0.254 test001
192.168.0.1 test002
[root@test001 root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:71:23:4D
inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2631 errors:0 dropped:0 overruns:0 frame:0
TX packets:2393 errors:0 dropped:0 overruns:0 carrier:0
collisions:457 txqueuelen:100
RX bytes:1520643 (1.4 Mb) TX bytes:303946 (296.8 Kb)
Interrupt:11 Base address:0x1000
eth1 Link encap:Ethernet HWaddr 00:E0:4C:8C:8A:2B
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:3280 dropped:160 overruns:3280 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0x3000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:97 errors:0 dropped:0 overruns:0 frame:0
TX packets:97 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7318 (7.1 Kb) TX bytes:7318 (7.1 Kb)
ppp0 Link encap oint-to-Point Protocol
inet addr:218.108.226.196 P-t-P:218.108.255.26 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:2174 errors:0 dropped:0 overruns:0 frame:0
TX packets:2266 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1419674 (1.3 Mb) TX bytes:245574 (239.8 Kb) |
|