|
rt 自己用编译的方法安装了rp-pppoe
设置完成后用adsl-start 来拨号
它显示连接上了。但是我的机还是不能上上网.
用了- iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o ppp+ -j MASQUERADE
复制代码
局域网的其他机也不能上。
- root@ubuntu:/home/winding # ifconfig
- eth0 Link encap:Ethernet HWaddr 00:E0:4C:C1:29:15
- inet addr:192.168.0.7 Bcast:192.168.0.255 Mask:255.255.255.0
- inet6 addr: fe80::2e0:4cff:fec1:2915/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:6147 errors:0 dropped:0 overruns:0 frame:0
- TX packets:265 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:399627 (390.2 KiB) TX bytes:20596 (20.1 KiB)
- Interrupt:11 Base address:0xc000
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- inet6 addr: ::1/128 Scope:Host
- UP LOOPBACK RUNNING MTU:16436 Metric:1
- RX packets:1879 errors:0 dropped:0 overruns:0 frame:0
- TX packets:1879 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:147035 (143.5 KiB) TX bytes:147035 (143.5 KiB)
- ppp0 Link encap:Point-to-Point Protocol
- inet addr:220.173.118.230 P-t-P:172.0.0.1 Mask:255.255.255.255
- UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
- RX packets:11 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:414 (414.0 b) TX bytes:30 (30.0 b)
复制代码
- Ethernet Interface: eth0
- User name: bglk482135
- Activate-on-demand: No
- Primary DNS: 202.103.224.68
- Secondary DNS: 202.103.226.68
- Firewalling: MASQUERADE
复制代码 |
|