Cisco ADSL PPPOE over Ethernet

實驗環境爲工大模擬器,GNS3由於ATMSW設置問題做不了
 
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 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章