- 论坛徽章:
- 0
|
用ADSL分享局域网的路由问题
谢谢荒野,
ADSL本身不支持路由,就是一个拨号器而已,另外有一台机器是linux做的网关,现在已经用rp-pppoe通过linux网关拨上internet了,见表
eth0 Link encap:Ethernet HWaddr 00:50:FC:23 C:7A
inet addr:202.226.*.* Bcast:202.226.*.255 Mask:255.255.255.192
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1775246 errors:0 dropped:0 overruns:0 frame:0
TX packets:2753490 errors:0 dropped:0 overruns:2 carrier:0
collisions:0 txqueuelen:100
RX bytes:1725066354 (1645.1 Mb) TX bytes:1215968406 (1159.6 Mb)
Interrupt:12 Base address:0x9000
eth1 Link encap:Ethernet HWaddr 00:00:B4:00:1A:35
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2748235 errors:0 dropped:0 overruns:0 frame:0
TX packets:1727397 errors:0 dropped:0 overruns:3 carrier:0
collisions:0 txqueuelen:100
RX bytes:1207305029 (1151.3 Mb) TX bytes:1722256532 (1642.4 Mb)
Interrupt:10 Base address:0xb000
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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:784 (784.0 b) TX bytes:784 (784.0 b)
ppp0 Link encap oint-to-Point Protocol
inet addr:221.216.*.120 P-t-P:61.51.120.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:462 (462.0 b) TX bytes:30 (30.0 b)
______________________________________________
现在我想将192.168.0.0/24,这个子网的某几个IP通过ppp0出去,请教怎么配路由!(或者iptables该这么写命令)。谢谢大家! |
|