![](https://i-blog.csdnimg.cn/blog_migrate/efc9164b0b243aa62cdec2f407c2dbd3.gif)
cper2#show run
!
interface FastEthernet0/0
ip address 10.0.0.200 255.255.255.0
no sh
ip nat inside
!
interface ATM1/0
no sh
no ip address
no atm ilmi-keepalive
pvc 2/200
encapsulation aal5snap
protocol ppp dialer
dialer pool-member 1
!
!
interface Dialer0
no sh
ip nat outside
ip address negotiated
encapsulation ppp
dialer pool 1
dialer-group 1
ppp chap hostname cisco
ppp chap password 0 cisco
!
ip route 0.0.0.0 0.0.0.0 Dialer0
access-list 101 permit ip 10.0.0.0 0.255.255.255 any
ip nat inside source list 101 int dialer0 overload
!
ip dhcp pool poolcisco
network 10.0.0.0 255.0.0.0
default-router 10.0.0.200
!
!
interface FastEthernet0/0
ip address 10.0.0.200 255.255.255.0
no sh
ip nat inside
!
interface ATM1/0
no sh
no ip address
no atm ilmi-keepalive
pvc 2/200
encapsulation aal5snap
protocol ppp dialer
dialer pool-member 1
!
!
interface Dialer0
no sh
ip nat outside
ip address negotiated
encapsulation ppp
dialer pool 1
dialer-group 1
ppp chap hostname cisco
ppp chap password 0 cisco
!
ip route 0.0.0.0 0.0.0.0 Dialer0
access-list 101 permit ip 10.0.0.0 0.255.255.255 any
ip nat inside source list 101 int dialer0 overload
!
ip dhcp pool poolcisco
network 10.0.0.0 255.0.0.0
default-router 10.0.0.200
!
聚合
r1#show run
!
username cisco password 0 cisco
!
!
interface Loopback0
ip address 200.1.1.1 255.255.255.0
!
interface ATM1/0
no sh
no ip address
no atm ilmi-keepalive
pvc 1/100
encapsulation aal5snap
protocol ppp Virtual-Template1
!
!
interface Virtual-Template1
ip unnumbered Loopback0
peer default ip address pool cisco
ppp authentication chap
!
ip local pool cisco 200.1.1.10 200.1.1.20
!
!
PC自动获取
!
##########################################################
解释
cper2#show run
!
interface FastEthernet0/0
ip address 10.0.0.200 255.255.255.0
no sh
ip nat inside
!
interface ATM1/0 atm接口
no sh
no ip address
no atm ilmi-keepalive
pvc 2/200 配置PVC参数 VPI/VCI的值
encapsulation aal5snap
protocol ppp dialer 映射上层协议到此连接 LLC PPP over AAL5 Encapsulation
pvc is part of dialer profile
dialer pool-member 1 设定此VC属哪个拨号池
! 指定拨号成员
! Dialer pool number
interface Dialer0 进入拨号接口
no sh
ip nat outside
ip address negotiated
encapsulation ppp
dialer pool 1 Dial-on-demand routing (DDR) commands
Specify dialer pool to be used
Dialer pool number
r1#show run
!
username cisco password 0 cisco
!
!
interface Loopback0
ip address 200.1.1.1 255.255.255.0
!
interface ATM1/0
no sh
no ip address
no atm ilmi-keepalive
pvc 1/100
encapsulation aal5snap
protocol ppp Virtual-Template1
!
!
interface Virtual-Template1
ip unnumbered Loopback0
peer default ip address pool cisco
ppp authentication chap
!
ip local pool cisco 200.1.1.10 200.1.1.20
!
!
PC自动获取
!
##########################################################
解释
cper2#show run
!
interface FastEthernet0/0
ip address 10.0.0.200 255.255.255.0
no sh
ip nat inside
!
interface ATM1/0 atm接口
no sh
no ip address
no atm ilmi-keepalive
pvc 2/200 配置PVC参数 VPI/VCI的值
encapsulation aal5snap
protocol ppp dialer 映射上层协议到此连接 LLC PPP over AAL5 Encapsulation
pvc is part of dialer profile
dialer pool-member 1 设定此VC属哪个拨号池
! 指定拨号成员
! Dialer pool number
interface Dialer0 进入拨号接口
no sh
ip nat outside
ip address negotiated
encapsulation ppp
dialer pool 1 Dial-on-demand routing (DDR) commands
Specify dialer pool to be used
Dialer pool number
dialer-group 1 Assign interface to dialer-list
Dialer list number
ppp chap hostname cisco
ppp chap password 0 cisco
!
ip route 0.0.0.0 0.0.0.0 Dialer0
access-list 101 permit ip 10.0.0.0 0.255.255.255 any
ip nat inside source list 101 int dialer0 overload
!
ip dhcp pool poolcisco
network 10.0.0.0 255.0.0.0
default-router 10.0.0.200
!
Dialer list number
ppp chap hostname cisco
ppp chap password 0 cisco
!
ip route 0.0.0.0 0.0.0.0 Dialer0
access-list 101 permit ip 10.0.0.0 0.255.255.255 any
ip nat inside source list 101 int dialer0 overload
!
ip dhcp pool poolcisco
network 10.0.0.0 255.0.0.0
default-router 10.0.0.200
!
聚合
r1#show run
!
username cisco password 0 cisco 建立用户名验证
!
interface Loopback0
ip address 200.1.1.1 255.255.255.0
!
interface ATM1/0
no sh
no ip address
no atm ilmi-keepalive
pvc 1/100 Configure ATM PVC parameters
<0-255> Enter VPI/VCI value(slash required)
<1-1023> Enter VCI value
encapsulation aal5snap Select ATM Encapsulation for VC
AAL5+LLC/SNAP Encapsulation
protocol ppp Virtual-Template1 Map an upper layer protocol to this connection.
Virtual Template interface
!
!
interface Virtual-Template1
ip unnumbered Loopback0 Enable IP processing without an explicit address
peer default ip address pool cisco Peer parameters for point to point interfaces
Specify default parameters
pecify default IP parameters
Specify default IP address
Use IP pool mechanism to allocate a peer IP address
List of one or more IP address pools
用池机制分配IP地址池名
ppp authentication chap
!
ip local pool cisco 200.1.1.10 200.1.1.20 指定本地地址池
!
PC自动获取IP,拨号由CPE完成。
r1#show run
!
username cisco password 0 cisco 建立用户名验证
!
interface Loopback0
ip address 200.1.1.1 255.255.255.0
!
interface ATM1/0
no sh
no ip address
no atm ilmi-keepalive
pvc 1/100 Configure ATM PVC parameters
<0-255> Enter VPI/VCI value(slash required)
<1-1023> Enter VCI value
encapsulation aal5snap Select ATM Encapsulation for VC
AAL5+LLC/SNAP Encapsulation
protocol ppp Virtual-Template1 Map an upper layer protocol to this connection.
Virtual Template interface
!
!
interface Virtual-Template1
ip unnumbered Loopback0 Enable IP processing without an explicit address
peer default ip address pool cisco Peer parameters for point to point interfaces
Specify default parameters
pecify default IP parameters
Specify default IP address
Use IP pool mechanism to allocate a peer IP address
List of one or more IP address pools
用池机制分配IP地址池名
ppp authentication chap
!
ip local pool cisco 200.1.1.10 200.1.1.20 指定本地地址池
!
PC自动获取IP,拨号由CPE完成。
!
转载于:https://blog.51cto.com/czywf/155311