123rew 发表于 2015-3-5 13:13:35

家庭使用华为AR200 (AR207) ADSL PPPOEOA拨号上网

新家上网需要一台好点的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]
查看完整版本: 家庭使用华为AR200 (AR207) ADSL PPPOEOA拨号上网