设为首页 收藏本站
查看: 2291|回复: 0

[经验分享] 家庭使用华为AR200 (AR207) ADSL PPPOEOA拨号上网

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-3-5 13:13:35 | 显示全部楼层 |阅读模式
新家上网需要一台好点的ADSL路由器,放在弱电箱里,组网为路由器+2个AP,
如果家里是光纤上网的可能需要PON接口的路由器,呵呵。
需要支持命令行调试的企业级路由器,最后由于价格原因,选择了AR207V,600¥。
下面只简述ADSL拨号上网的配置,关于AC+AP设置漫游的配置手册描述比较详细,不列出了。

其实ADSL拨号就是PPPOEOA,具体配置参考手册即可,这里补充手册不全的地方。

1
2
3
#
acl name Atm0/0/0 2999  
rule 5 permit



///////*************rule for nat
1
2
3
#
dialer-rule
dialer-rule 1 ip permit



///////*************rule for dial
1
2
3
4
5
6
#
interface Dialer1
link-protocol ppp
ppp chap user usernameforadsl
ppp chap password cipher passwordforadsl
ppp pap local-user usernameforadsl password passwordforadsl



///////*************input password manually, don't copy/paste。请手动输入密码,请不要粘贴密码
1
2
3
4
5
6
7
8
9
ppp ipcp dns admit-any
ppp ipcp dns request
mtu 1440
tcp adjust-mss 1460
ip address ppp-negotiate
dialer user arweb
dialer bundle 1
dialer-group 1
nat outbound 2999



///////*************dialer for pppoe
1
2
3
4
5
#
interface Vlanif1
ip address 192.168.1.1 255.255.255.0     
dhcp select interface
dhcp server dns-list 202.103.24.68



///////*************vlan 1 for client pc
1
2
3
4
#
interface Atm0/0/0
pvc 0/32
  map bridge Virtual-Ethernet0/0/0



///////*************dsl interface pvc, 0/32 for Wuhan   
1
2
3
#
interface Virtual-Ethernet0/0/0
pppoe-client dial-bundle-number 1



///////*************virtual interface for pppoe dial
1
2
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1



///////*************default route


首先你的ATM口要激活
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<Huawei>dis int dialer1
Dialer1 current state : UP
Line protocol current state : UP (spoofing)
Description:HUAWEI, AR Series, Dialer1 Interface
Route Port,The Maximum Transmit Unit is 1440, Hold timer is 10(sec)
Internet Address is negotiated, 27.16.226.91/32
Link layer protocol is PPP
LCP initial
Physical is Dialer
Current system time: 2015-03-04 22:00:39+08:00
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec
    Realtime 0 seconds input rate 0 bits/sec, 0 packets/sec
    Realtime 0 seconds output rate 0 bits/sec, 0 packets/sec
    Input: 0 bytes
    Output:0 bytes
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
Bound to Dialer1:0:
Dialer1:0 current state : UP ,
Line protocol current state : UP
Link layer protocol is PPP
LCP opened, IPCP opened
Packets statistics:
  Input packets:0,  0 bytes               
  Output packets:0, 0 bytes               
                                          
<Huawei>dis dsl inter atm0/0/0
-------------------------------------------------------------
DSL driver and PHY status
      Training Status                      : Showtime
      Transmission Mode                    : ADSL2+ AnnexM
      Line Status                          : No Defect
      Downstream max. attainable rate(Kbps): 25544
      Upstream max. attainable rate(Kbps)  : 2509
      Downstream actual net data rate(Kbps): 13311
      Upstream actual net data rate(Kbps)  : 506
      Downstream SNR margin(dB)            : 25.5
      Upstream SNR margin(dB)              : 32.5
      Downstream attenuation(dB)           : 8.5
      Upstream attenuation(dB)             : 7.1
      Downstream output power(dBm)         : 18.4
      Upstream output power(dBm)           : 12.4
      Downstream total cells               : 205127736
      Upstream total cells                 : 7795007
      Downstream data cells                : 7344197
      Upstream data cells                  : 569829
      Downstream bit errors                : 0
      Upstream bit errors                  : 0
      Total drop cells                     : 0
      Downstream total ES count            : 0
      Upstream total ES count              : 0
      Downstream total SES count           : 0
      Upstream total SES count             : 0
      Downstream total UAS count           : 3637
      Upstream total UAS count             : 3637
      Total AS count                       : 6534
Line modulations
      G.Dmt                                : Enabled
      T1.413                               : Enabled
      ADSL2                                : Enabled
      AnnexL                               : Enabled
      ADSL2+                               : Enabled
      AnnexM                               : Enabled
Line capability
      Bitswap                              : On
      SRA                                  : Off
      Trellis coding                       : On
Board version
      vendor ID                            : 0xB5 0 "BDCM" 0 0
      vendor serial                        : 00000000000000000000000000000001
      Board ID                             : 963281TAN
      Software version                     : 4.06L.03
      Bootloader (CFE) version             : 1.2.37-106.24
      DSL PHY and driver version           : A2pD037f.d24f
      Build timestamp                      : 20131205_1738
ATU-C version
      vendor ID                            : BDCM:0x939e
      vendor number                        : 0x939e
--------------------------------------------------------------




拨号如果不成功,可以debug查看,无非就是debug ppp和pppoe
term mo
term debug
debug ppp all
debug ppp lcp interface dialer 1

成功后可以看到dialer接口获取到了地址。
1
2
3
4
5
6
7
8
9
<Huawei>dis int dialer1
Dialer1 current state : UP
Line protocol current state : UP (spoofing)
Description:HUAWEI, AR Series, Dialer1 Interface
Route Port,The Maximum Transmit Unit is 1440, Hold timer is 10(sec)
Internet Address is negotiated, 27.16.226.91/32
Link layer protocol is PPP
LCP initial
Physical is Dialer






运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-43655-1-1.html 上篇帖子: 基于snmp协议监控华为s5720交换机 下篇帖子: 华为5700上开启DHCP服务
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表