Thông tin tài liệu:
Ebook Giới Thiệu-Hướng dẫn Tạo lập, thiết kế, xây dựng chỉnh sửa mạng Cisco nâng cao, mạng Net Work, và mạng OSIsỞ topo trên, ta có, R3 sẽ làm PPPoE client, còn R1 sẽ làm PPPoE server, thực hiện kết nối với các mạng trong Internet với ISP làm router giả lập ISP. Router R2 là router ở chi nhánh, thực hiện NAT để cho mang private ra internet. Chú ý: Các router R3, R1 là các route 2600, chạy IOS version 12.2 trở lên. Cấu hình: R1 Building configuration... * hostname R1 memory-size iomem 10 ip subnet-zero vpdn enable...
Nội dung trích xuất từ tài liệu:
Cisco Network part 14PPP over EthernetTác giả Lê Anh ĐứcMô tả:Error!Ở topo trên, ta có, R3 sẽ làm PPPoE client, còn R1 sẽ làm PPPoE server,thực hiện kết nối với các mạng trong Internet với ISP làm router giả lậpISP. Router R2 là router ở chi nhánh, thực hiện NAT để cho mang privatera internet. Chú ý: Các router R3, R1 là các route 2600, chạy IOS version12.2 trở lên.Cấu hình:R1Building configuration...*hostname R1memory-size iomem 10ip subnet-zerovpdn enable ßbật vpdnvpdn-group 1 ßtạo vpdn group để trao đổi với clientaccept-dialin ß xác định đây là PPPoE serverprotocol pppoevirtual-template 1interface Loopback1ip address 203.162.3.2 255.255.255.255interface Ethernet0/0no ip addresshalf-duplexpppoe enableinterface Serial0/0ip address 203.20.20.2 255.255.255.252no fair-queueinterface Virtual-Template1ip unnumbered Loopback1ip classlessip route 0.0.0.0 0.0.0.0 203.20.20.1endR2Building configuration...hostname R2interface Ethernet0/0ip address 10.10.2.1 255.255.255.0ip nat insidehalf-duplexinterface Serial0/0ip address 203.30.30.2 255.255.255.252ip nat outsideno fair-queueip nat inside source list 1 interface Serial0/0 overloadip classlessip route 0.0.0.0 0.0.0.0 203.30.30.1ip http serveraccess-list 1 permit 10.10.2.0 0.0.0.255endR3Building configuration...hostname R3vpdn enablevpdn-group 1request-dialin ßđây là PPPoE clientprotocol pppoeinterface Loopback0ip address 10.10.1.1 255.255.255.0ip nat insideinterface Ethernet0/0no ip addresshalf-duplexpppoe enablepppoe-client dial-pool-number 1 ßsử dụng dialer 1 để giao tiếp vớiPPPoE serverinterface Dialer1mtu 1492ip address 203.162.3.1 255.255.255.0ip nat outsideencapsulation pppdialer pool 1dialer-group 1ip nat inside source list 1 interface Dialer1 overloadip classlessip route 0.0.0.0 0.0.0.0 203.162.3.2ip http serveraccess-list 1 permit 10.10.1.0 0.0.0.255dialer-list 1 protocol ip permitendISPhostname ISPip subnet-zerointerface Serial0ip address 203.20.20.1 255.255.255.252no ip directed-broadcastno ip mroute-cacheno fair-queueclockrate 64000interface Serial1ip address 203.30.30.1 255.255.255.252no ip directed-broadcastclockrate 64000ip classlessip route 203.162.0.0 255.255.0.0 203.20.20.2endThực hiện:PPP over Ethernet là một sự phát triển dựa trên kỹ thuật PPP truyền thống.PPPoE cung cấp khả năng kết nối nhiều host trong mạng qua một thiết bịchuyển mạch vào một DSLAM, để cung cấp một kết nối PPPoE, mỗiphiên PPP phải học địa chỉ Ethernet của remote peer và thiết lập một danhđịnh duy nhất. PPPoE gồm 2 pha: Discovery và Session: · Discovery: khi một router muốn khởi tạo 1 phiên PPPoE, nó phải xác định địa chỉ MAC của thiết bị bên kia (Lát nửa debug sẽ cho thấy điều này) và thiết lập một PPPoE Session-ID. Trong quá trình này, CPE sẽ tìm các DSLAM và chọn một cái để sử dụng. Khi quá trình này chấm dứt, cả CPE và DSLAM đều sẽ có thông tin mà nó sử dụng để xây dựng kết nối PPPoE. Khi PPPsession được thiết lập thì cả CPE và DSLAM sẽ phải phân phát tài nguyên của mình cho một PPP virtual interface. · Session: khi được thiết lập thì dữ liệu sẽ được gửi. Để cấu hình, ta thực hiện các bước sau: PPPoE server(R1): R1(config)#vpdn enable ßbật PPPoER1(config)#vpdn-group 1R1(config-vpdn)#accept-dialin ßxác định đây là PPPoE serverR1(config-vpdn-acc-in)#protocol pppoeR1(config-vpdn-acc-in)#virtual-template 1 ßsử dụng virtual để giaotiếp với clientR1(config-vpdn-acc-in)#exitR1(config)#int lo1R1(config-if)#ip add 203.162.3.2 255.255.255.255R1(config-if)#int e0/0R1(config-if)#pppoe enable ßbật PPPoE trên interface kết nối vớiclientR1(config)#int virtual-template 1 ßtạo virtual templateR1(config-if)#ip unnumbered lo1PPPoE client(R3):R3(config)#vpdn enableR3(config)#vpdn-group 1R3(config-vpdn)#request-dialin ßxác định PPPoE clientR3(config-vpdn-req-in)#protocol pppoeR3(config)#int e0/0R3(config-if)#pppoe enable ßbật PPPoE trên interface nối vớiserverR3(config-if)#pppoe-client dial-pool-number 1 ßsử dụng dialer 1 đểgiao tiếp với serverR3(config-if)#exitR3(config)#int dialer 1R3(config-if)#mtu 1492R3(config-if)#ip add 203.162.3.1 255.255.255.0R3(config-if)#ip nat outsideR3(config-if)#encapsulation pppR3(config-if)#dialer pool 1R3(config-if)#dialer-group 1R3(config-if)#exitR3(config)#dialer-list 1 protocol ip permitKiểm tra:Ta sử dụng các lệnh show và debug để xem quá trình tạo kết nối và traođổi dữ liệu như thế nào giữa client và server:R3#sh intEthernet0/0 is up, line protocol is upHardware is AmdP2, address is 0005.5e96.2cc0 (bia 0005.5e96.2cc0)MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,reliability 192/255, txload 1/255, rxload 1/255Encapsulation ARPA, loopback not setKeepalive set (10 sec)ARP type: ARPA, ARP Timeout 04:00:00Last input 00:00:41, output 00:00:05, output hang neverLast clearing of show interface counte ...