拓扑图
配置贴出来
[AR28-31]dis curr
#
sysname AR28-31(配置路由器名称)
#
cpu-usage cycle 1min
#
dialer-rule 1 ip permit(配置Dialer接口)
#
radius scheme system
#
domain system
#
local-user admin
password ******
service-type telnet terminal
level 3
service-type ftp
#
acl number 2001 match-order auto(添加一个ACL用于NAT)
rule 0 permit source 192.168.11.0 0.0.0.255(允许内网用户地址)
rule 1 deny(拒绝其他)
#
interface Aux0
async mode flow
#
interface Dialer1(配置Dialer接口)
link-protocol ppp
ppp pap local-user tzsky password simple 123456
tcp mss 1024
ip address ppp-negotiate
dialer user huawei
dialer bundle 1
dialer-group 1
nat outbound 2001(配置NAT)
#
interface Ethernet0/0
pppoe-client dial-bundle-number 1 (配置PPPoE会话)
ip address dhcp-alloc
#
interface Ethernet0/1
ip address 192.168.11.254 255.255.255.0(配置内网网关)
#
interface NULL0
#
FTP server enable
#
ip route-static 0.0.0.0 0.0.0.0 Dialer 1 preference 60(配置缺省路由)
#
user-interface con 0
user-interface aux 0
user-interface vty 0 4
authentication-mode scheme
#
return
这个实验是我回顾出来的,以前我公司用的PPPoE宽带上网, 现在已经光纤了,但我觉得有必要贴出来让目前使用PPPoE上网的朋友有个参考
华为的配置其实与思科原理相通,希望本文能对初学华为的同志们有所帮助