|
ADSL 拨号上网事例
ADSL 用户名: [email protected]
密码: 1234
Service Name: CHN-Telecom
1:添加 PPPOE Clients
[[email protected]] interface pppoe-client>
[[email protected]] interface pppoe-client> add interface=ether1 mtu=1492 mru=1492 service-name=CHN-Telecom user= [email protected] password=1234
add-default-route=yesuse-peer-dns=yes
[[email protected]] interface pppoe-client> print Flags: X - disabled, R - running
0 X name="pppoe-out1" mtu=1492 mru=1492 interface=ether1 [email protected] password=1234 profile=default service-name=CHN-Telecom ac-name="" add-default-route=yes dial-on-demand=no use-peer-dns=yes
PPPOE 拨号已经配置好,接下来将 ADSL MODEM 的网线连接好进行以下操作就可以连同了。
[[email protected]] interface pppoe-client>enable 0
[[email protected]] interface pppoe-client> monitor pppoe-out1
status: "connected" uptime: 10s
encoding: "none"
service-name: "CHN-Telecom" ac-name: ""
ac-mac: 00:C0 F:07:5E:E6
之后还需在 ip firewall mangle 中添加一条规则:
[[email protected]] ip firewall mangle> add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1440
[[email protected]] ip firewall mangle> print
Flags: X - disabled, I – invalid
0 chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1440
最后如果你要起用 nat 功能,不要忘了在 ip firewall nat 设置 IP 伪装。
|
|