实验环境为工大模拟器,GNS3由于ATMSW设置问题做不了Cisco ADSL PPPOE over Ethernet_职场
 
r3#show run
vpdn enable
!
vpdn-group cisco
 request-dialin
  protocol pppoe
!
interface FastEthernet1/0
 no ip address
 no sh
 pppoe enable
 pppoe-client dial-pool-number 1
!
interface FastEthernet0/0
 ip add 10.0.0.200 255.255.255.0
 ip nat inside
 no sh
!
interface Dialer0
 no sh
 ip nat outside
 ip mtu 1492
 ip address negotiated
 encapsulation ppp
 dialer pool 1
 dialer-group 1
 ppp chap hostname cisco
 ppp chap password 0 cisco
!
ip classless
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.255.255.0
default-router 10.0.0.200
!

r2cpe#show run
no ip routing
!
interface FastEthernet0/0
 no sh
 no ip address
 bridge-group 1
!
interface ATM1/0
 no sh
 no ip address
 no ip route-cache
 no atm ilmi-keepalive
 bridge-group 1
 pvc 2/200
  encapsulation aal5snap
 !
!
bridge 1 protocol ieee
!

r1桥接设备#show run
no ip routing
!
interface FastEthernet0/0
 no sh
 no ip address
 bridge-group 1
!
interface ATM1/0
 no sh
 no ip address
 no ip route-cache
 no atm ilmi-keepalive
 bridge-group 1
 pvc 1/100
  encapsulation aal5snap
 !
!
bridge 1 protocol ieee
!
 
r4汇聚设备#show run
vpdn enable
!
vpdn-group 1
 accept-dialin
  protocol pppoe
  virtual-template 1
!
!
username cisco password 0 cisco
!
interface Loopback0
 ip address 200.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 no sh
 no ip address
 pppoe enable
!
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
!

接在R3上的client (pC),只需要通过R3做NAT就可以直接上网,无需使用PPPOE client软件,地
址自动DHCP。
接在R2后面的Client (PC)则需要通过PPPOE Client上网。创建拨号,输入用户名和密码,即
可,PC无须IP
测试:R2# ping atm interface atm 1/0 2 200   !!!!!
          R1# ping atm interface atm 1/0 1 100   !!!!!
          R3#show ip nat translations
          R3#show ip dhcp binding
          R3#show pppoe session