#1 2010-12-03 15:49:20
3g ppp0已经拨通,但电脑不能上网。
你好,
我的是版本tomato1.28,使用3g拨号上网,ifconfig 可以看到ppp0出现,ping www.baidu.com也可以通,板子可以上网了。但是使用电脑接到tomato板子上,却上不了网。应该是3g的ppp0 没有加入vlan1中,请教是怎样把ppp0加到vlan1,使得电脑也可以通过tomato的板子上网?
bcm5354芯片,原内核wan设成固定ip不能直接上网,需要把nvram set vlan1ports="0 5u"设置成vlan1ports="0 5"
/ # cat /proc/sys/net/ipv4/ip_forward
1
ifconfig
 
ppp0       Link encap:Point-to-Point Protocol  
           inet addr:10.77.53.150  P-t-P:192.200.1.21  Mask:255.255.255.255
           UP POINTOPOINT RUNNING MULTICAST  MTU:1400  Metric:1
           RX packets:42 errors:0 dropped:0 overruns:0 frame:0
           TX packets:372 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:3 
           RX bytes:4741 (4.6 KiB)  TX bytes:23116 (22.5 KiB)
 
/ # route 
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.200.1.21    *               255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     *               255.255.255.0   U     0      0        0 br0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.200.1.21    0.0.0.0         UG    0      0        0 ppp0
最後修改: goon863 (2010-12-03 17:25:03)
離線










