The Large Division ISP (Internet service provider) uses PPPoE (Point-to-point-over-Ethernet, peer-to-peer protocol on Ethernet) on the network to authenticate the user's computer. Everyone at home when the Internet will be ADSL dial-up connection, small and medium-sized company routers for ADSL connection, using the PPPoE protocol. Today, we explain the fundamentals of PPPoE, how to configure servers and clients on a Cisco router, and configure clients on a Windows operating system.
PPPoE Overview:
PPPoE is a two-layer protocol for encapsulating PPP data frames in an Ethernet frame. With the advantage of PPP, we can realize the authentication, session detection, billing and so on, mainly for the operators and the community broadband.
PPPoE Fundamentals:
PPPoE is divided into control plane and data plane, the control plane is how to establish the PPPoE session, how to authenticate the user, and the data plane is the forwarding of our data packet. PPPoE is divided into two stages in the control plane, the first stage is the Discovery (discovery) stage, and the second stage is the session establishment phase.
First stage:
The main purpose of the discovery phase is to find the PPPoE server, at which time the Ethernet type is 0x8863. This phase is divided into 4 steps:
1. The client (PC or router) broadcasts a PPPoE active Discovery initiantion (PADI) message, the source MAC address is its own MAC address, and the destination MAC address is a full F broadcast MAC address.
The 2.PPPoE server sends a PPPoE Active Discovery offer message (Pado) that describes what services it can provide. The target Mac is the client's MAC address.
The 3.PPPoE client sends a unicast PPPoE Active Discovery request message (PADR) to the PPPoE server.
The 4.PPPoE server sends a unicast PPPoE acitve Discovery session-confirm Message (PADS) to the client. This is a confirmation message and the session is set up to complete.
When the discovery phase is complete, the PPPoE client and the selected PPPoE server have information to establish a PPP connection on the Ethernet. This is the time to begin the PPP setup process, including LCP and NCP processes.
Phase II:
The second stage is the session phase of PPPoE, the Ethernet type is 0x8864, this phase will complete the establishment of PPP, in the completion of the most important is the completion of certification, basically there are two authentication protocols, including PAP and chap.
Message encapsulation for PPPoE:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/70/98/wKiom1W5x5rRWS33AADIrg0xV-o066.jpg "title=" Encapsulation.jpg "alt=" Wkiom1w5x5rrws33aadirg0xv-o066.jpg "/>
PPPoE message (Discovery phase)
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/70/98/wKiom1W5x7_i3NkbAALOKuDk6U0802.jpg "title=" Discovery.jpg "alt=" Wkiom1w5x7_i3nkbaalokudk6u0802.jpg "/>
PPPoE message (Session stage)
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/70/98/wKiom1W5x9GBaSoxAANL7p3t_Y0059.jpg "title=" Sessioin.jpg "alt=" Wkiom1w5x9gbasoxaanl7p3t_y0059.jpg "/>
And then we're going to experiment,
The server that configures PPPoE on the router, makes the router of the Cisco IOS as the server of PPPoE;
Dial-up connection using Win7 and XP built-in clients;
Use a Cisco router to dial a client for PPPoE.
Lab Environment:
Cisco Router
IOS version:version 12.4 (T5)
Device Type:cisco 3660
Client:
-
WINDOWS7 
-
cisco router
The following experiments can be achieved through the simulator, bloggers are using the simulator. Install the Windows XP and Windows7 operating systems on the VMware Workstation and connect to R2 and R1 through the network card bridging. Simulate the Cisco router by loading the iOS of the real 36 router via the Dynamips simulator. Only by doing more experiments can we understand and thoroughly understand technology more deeply. The paper came to the end of the light, aware of the matter to preach.
The network topology is as follows:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/70/98/wKiom1W5yFjAaWySAAFR4lH8GIY333.jpg "title=" Topology.jpg "alt=" Wkiom1w5yfjaawysaafr4lh8giy333.jpg "/>
The basic configuration of the router is as follows:
R1 (config) #int Lo 0
R1 (config-if) #ip Add 1.1.1.1 255.255.255.0
R1 (config-if) #int f0/0
R1 (config-if) #ip add 12.1.1.1 255.255.255.0
R1 (config-if) #no shut
R1 (config-if) #router RIP
R1 (config-router) #ver 2
R1 (config-router) #no Auto
R1 (config-router) #net 1.0.0.0
R2 (config) #int f0/0
R2 (config-if) #ip add 12.1.1.2 255.255.255.0
R2 (config-if) #no shut
R2 (config-if) #int Lo 0
R2 (config-if) #ip add 23.1.1.2 255.255.255.0
R2 (config-if) #router RIP
R2 (config-router) #ver 2
R2 (config-router) #no Auto
R2 (config-router) #net 12.0.0.0
R2 (config-router) #net 23.0.0.0
PPPoE Server configuration:
R2 (config) #int f1/0
R2 (config-if) #no IP add
R2 (config-if) #no shut
R2 (config-if) #pppoe enable
R2 (config) #ip local pool Ippool 23.1.1.100 23.1.1.200
R2 (config) #bba-group PPPoE Global
R2 (Config-bba-group) #virtual-template 1
R2 (Config-bba-group) #exit
R2 (config) #int virtual-template 1
R2 (config-if) #ip unnumbered loopback 0
R2 (config-if) #peer default IP address pool Ippool
R2 (config-if) #ppp authentication pap
R2 (config-if) #exit
R2 (config) #username user1 password Cisco
R2 (config) #username user2 password Cisco
WIN7 Client Configuration:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/95/wKioL1W5zhjzPJuQAAQDDAm7a2Y627.jpg "style=" float: none; "title=" Win7-1.png "alt=" Wkiol1w5zhjzpjuqaaqddam7a2y627.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/95/wKioL1W5zhiCoG0rAAGdLBIuU1Q399.jpg "style=" float: none; "title=" win7-3.jpg "alt=" Wkiol1w5zhicog0raagdlbiuu1q399.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/99/wKiom1W5zCjwFGpKAAKKjjyTq2s094.jpg "style=" float: none; "title=" win7-4.jpg "alt=" Wkiom1w5zcjwfgpkaakkjjytq2s094.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/95/wKioL1W5zhiA1mMAAAMEBFKggfU861.jpg "style=" float: none; "title=" win7-5.jpg "alt=" Wkiol1w5zhia1mmaaamebfkggfu861.jpg "/>
WinXP Client Configuration:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/96/wKioL1W5zlfQmA8lAAPTfFsXEEM407.jpg "style=" float: none; "title=" xp-1.jpg "alt=" Wkiol1w5zlfqma8laaptffsxeem407.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/99/wKiom1W5zGejmjKYAAHxLtoSWd8404.jpg "style=" float: none; "title=" xp-2.jpg "alt=" Wkiom1w5zgejmjkyaahxltoswd8404.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/96/wKioL1W5zlex3ya6AAGaTXDqtI8193.jpg "style=" float: none; "title=" xp-3.jpg "alt=" Wkiol1w5zlex3ya6aagatxdqti8193.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/99/wKiom1W5zGfR17XRAAHTBKBhLds669.jpg "style=" float: none; "title=" xp-5.jpg "alt=" Wkiom1w5zgfr17xraahtbkbhlds669.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/96/wKioL1W5zley7-89AAFHVm7hKlM693.jpg "style=" float: none; "title=" xp-6.jpg "alt=" Wkiol1w5zley7-89aafhvm7hklm693.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/96/wKioL1W5zm3BTm1QAAH90zH777A649.jpg "style=" float: none; "title=" xp-7.jpg "alt=" Wkiol1w5zm3btm1qaah90zh777a649.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/99/wKiom1W5zH2BdqJCAAIpCJGYnGQ997.jpg "style=" float: none; "title=" xp-8.jpg "alt=" Wkiom1w5zh2bdqjcaaipcjgyngq997.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/99/wKiom1W5zH2glHOBAAFOiRiqyKw171.jpg "style=" float: none; "title=" xp-9.jpg "alt=" Wkiom1w5zh2glhobaafoiriqykw171.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/96/wKioL1W5zm3zaF11AABB7lnPeuQ790.jpg "style=" float: none; "title=" xp-10.jpg "alt=" Wkiol1w5zm3zaf11aabb7lnpeuq790.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/99/wKiom1W5zH3xmIHQAAHj-vYjY6A254.jpg "style=" float: none; "title=" xp-11.jpg "alt=" Wkiom1w5zh3xmihqaahj-vyjy6a254.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/96/wKioL1W5zm2SM2K4AAIBhTa-BoE679.jpg "style=" float: none; "title=" xp-12.jpg "alt=" Wkiol1w5zm2sm2k4aaibhta-boe679.jpg "/>
The router is configured for the client:
Not only can the computer dial, if the home or the company has more than one computer, you need a router that supports the PPPoE client function. General home-level router settings are relatively simple, such as Tp-link. Cisco is an enterprise-class router that is relatively complex to configure via the command line, which describes the client that configures the Cisco router as PPPoE and configures Nat to allow intranet users to surf the Internet.
PPPoE configuration:
Interface fastethernet1/0
No IP address
PPPoE Enable
Pppoe-client Dial-pool-number 1
Nterface Dialer1
IP address negotiated
IP MTU 1492
Encapsulation PPP
Dialer Pool 1
PPP Authentication pap Callin
PPP pap sent-username user1 password 0 Cisco
Routing configuration:
IP Route 0.0.0.0 0.0.0.0 Dialer1
NAT configuration:
Interface Loopback0
IP address 3.3.3.3 255.255.255.0
IP nat Inside
Interface Dialer1
IP Nat Outside
Access-list Permit IP 3.3.3.0 0.0.0.255 any
IP NAT inside Source list interface Dialer1 overload
Test:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/70/9A/wKiom1W51Oai0kdpAASJWrvmmbc506.jpg "title=" Ping-test.jpg "alt=" wkiom1w51oai0kdpaasjwrvmmbc506.jpg "/> dial-on-demand configuration
Today, most of the broadband is a monthly subscription year, if it is billed by the hour, may dial on demand more cost-effective, that is, when there is traffic will dial, no time will not dial, can save a lot of silver. The following are the dial-on-demand configurations on the router:
R3 (config) #interface f1/0
R3 (config-if) #no pppoe-client dial-pool-number 1
R3 (config-if) #pppoe-client dial-pool-number 1 Dial-on-demand
R3 (config) #access-list 101 Permit tcp any any EQ 23
R3 (config) #dialer-list 1 Protocol IP List 101
R3 (config) #interface dialer 1
R3 (config-if) #dialer-group 1
The reader can test, without Telnet traffic, there is no dial-up, telnet an address on R3, and automatically dial after triggering traffic.
Attachment: The package is a PPPoE message, and interested readers can use the software to view it.
This article is from "Yang Sen's It Road" blog, please be sure to keep this source http://senyang.blog.51cto.com/3427514/1680155
PPPoE Fundamentals and Configuration