Chào các bạn đến với Blog chia sẻ trao đổi kinh nghiệm và học tập

22 thg 7, 2012

Lab PPPoE

I. Mô Hình


Mô hình LAB trên GNS3

Cấu hình trên PPPoE_Server:

PPPoE_Server(config)# username cisco password cisco
PPPoE_Server(config)# bba-group pppoe global
PPPoE_Server(config-bba-group)# virtual-template 1
PPPoE_Server(config-bba-group)#session per-mar limit 3

PPPoE_Server(config)# interface f0/0
PPPoE_Server(config-if)# ip address 193.168.1.1 255.255.255.240
PPPoE_Server(config-if)# pppoe enable group global
PPPoE_Server(config-if)# no shutdown

PPPoE_Server(config)# interface virtual-template 1
PPPoE_Server(config-if)# ip mtu 1492
PPPoE_Server(config-if)# ip unnumbered f0/0
PPPoE_Server(config-if)# peer default ip address pool TINH
PPPoE_Server(config-if)# ppp authentication pap chap

PPPoE_Server(config)# ip local pool TINH 172.16.0.10 172.16.0.100

PPPoE_SERVER(config)#in f0/1
PPPoE_SERVER(config-if)#no sh
PPPoE_SERVER(config-if)#ip address dhcp

Cấu hình trên PPPoE_Client:

PPPoE_Client(config)# interface f0/0
PPPoE_Client(config-if)# no ip address
PPPoE_Client(config-if)# ip tcp adjust-mss 1452
PPPoE_Client(config-if)# pppoe enable
PPPoE_Client(config-if)# pppoe-client dialer-pool-number 1
PPPoE_Client(config-if)# no shutdown

PPPoE_Client(config)# interface dialer 1
PPPoE_Client(config-if)# ip address negotiated
PPPoE_Client(config-if)# encapsulation ppp
PPPoE_Client(config-if)# dialer pool 1
PPPoE_Client(config-if)# dialer-group 1
PPPoE_Client(config-if)# no cdp enable
PPPoE_Client(config-if)# ppp authentication pap chap callin
PPPoE_Client(config-if)# ppp pap sent-username cisco password cisco
PPPoE_Client(config-if)# ppp chap hostname cisco
PPPoE_Client(config-if)# ppp chap password cisco

PPPoE_Client(config)# ip route 0.0.0.0 0.0.0.0 dialer 1

PPPoE_Client(config)#in f0/1
PPPoE_Client(config-if)#no sh
PPPoE_Client(config-if)#ip address 192.168.100.254 255.255.255.0
PPPoE_Client(config-if)#exit
PPPoE_Client(config)#ip dhcp pool LAN
PPPoE_Client(dhcp-config)#network 192.168.100.0 255.255.255.0
PPPoE_Client(dhcp-config)#def 192.168.100.254
PPPoE_Client(dhcp-config)#dns 8.8.8.8
PPPoE_Client(dhcp-config)#import all
PPPoE_Client(config)#ip dhcp excluded-address 192.168.100.1 192.168.100.18

PPPoE_Client (conf)# access-list 1 permit 192.168.100.0 0.0.0.255
PPPoE_Client (conf)#ipnat inside source list 1 interface Dialer1 overload
PPPoE_Client (conf)#int f0/1
PPPoE_Client (config-if)ip nat inside
PPPoE_Client (conf)#int Dialer1
PPPoE_Client (config-if)ip nat outside


Xem  tiến trình PPP
PPPoE_Client #debug ppp authentication
PPPoE_Client #debug ppp negotiation

Xem session ,packet được truyền thông qua PPPoE

PPPoE_Client #show pppoe session all
PPPoE_Client #show pppoe packets