ADSL modem configuration of Cisco router

Source: Internet
Author: User
Tags exit

Router Access ADSL configuration detailed

1, Cisco router connection to the ADSL modem configuration: Note: The case for Beijing Telecom ADSL PPPoE access, need to use a common ADSL modem and a Cisco 2500 router (dual Ethernet port), IOS 12.2 (T), Be able to realize LAN sharing Internet.

This case configuration is divided into 7 steps:
First step: Configure VPDN VPDN E
1. The PPPoE configuration of Cisco router connecting ADSL modem:

Description: The case for Beijing Telecom ADSL PPPoE access, the need to use a common ADSL modem and a Cisco 2500 router (dual Ethernet port), IOS 12.2 (T), can realize LAN sharing Internet.
This case configuration is divided into 7 steps:
First Step: Configure VPDN
VPDN enable (Virtual private dial-up networking for routers---vpnd)
Vpdn-group Office (set up a VPDN group,)
Request-dialin (Initializes a VPND tunnel, establishes a VPDN subgroup that requests dial-in)
Protocol PPPoE (VPDN subgroup uses PPPoE to establish a session tunnel)

Step Two: Configure the router to connect the ADSL modem interface
Interface Ethernet1
No IP address
PPPoE enable allow Ethernet interface to run PPPoE
Pppoe-client Dial-pool-number 1 Add PPPoE dial-up Client of Ethernet interface to dial Pool 1

Step Three: Configure the logical dial-up interface:
Interface Dialer1
IP address negotiated from ADSL provider dynamic negotiation
IP NAT outside enable NAT for this interface
Encapsulation PPP encapsulates the PPP protocol for this interface
Dialer Pool 1 This interface uses Dial 1th to dial
Dialer-group 1 This command is of little value for PPPoE.
PPP authentication pap callin enable PPP PAP validation
PPP pap sent-username xxxxxxx Password 0 YYYYYYY using the username and password already requested

Step Fourth: Configure the Internal network interface
Interface Ethernet0 (Internal network interface)
IP address 10.1.1.1 255.255.255.0
IP NAT inside enable NAT for this interface

Step Fifth: Configure the router to provide DHCP service for the Internal network host
IP dhcp excluded-address 10.1.1.1
IP DHCP Pool ABC
Import all (importing DNS and WINS server)
Network 10.1.1.0 255.255.255.0
Default-router 10.1.1.1

Step Sixth: Configure NAT:
Access-list 1 Permit 10.1.1.0 0.0.0.255
Cc

Step Seventh: Configure the default route
IP Route 0.0.0.0 0.0.0.0 Dialer1


2, Cisco router connection ADSL WIC card of PPPoE configuration solution:

!
VPDN Enable
No VPDN logging <= because the ADSL PPPoE application is implemented through virtual dialing, it is necessary to use the VPDN function in the router
!
Vpdn-group PPPoE <= started the VPDN process for PPPoE
Request-dialin
Protocol PPPoE <= set dial-up protocol for PPPoE
!
Interface FastEthernet0 <= set up the company's internal network address
IP address 192.168.0.1 255.255.255.0
IP nat inside <= to enable NAT conversion, set the Fast Ethernet port to the internal network, and convert the original address of the data received from the internal network to the public address

!
Interface atm0/0 <= set ADSL port
No IP address <= please do not set addresses
No ATM ilmi-keepalive
Bundle-enable
DSL Operating-mode Auto
Hold-queue 224 in
Interface atm0/0.1 Point-to-Point &LT;=ADSL communication relies on VC, so you must set point-to-point VC
PVC 8/81 <= Set the relevant parameters of PVC, that is, VCI and VPI values, if not clear, please check to the local side
Pppoe-client Dial-pool-number 1 <=pppoe The dial-up process uses the regular dialing process, which references the Dialer-pool 1
!
Interface Dialer1 <= establishes a virtual dial-up port IP address negotiated <= due to the availability of dynamic addresses at the local end, the address must be set to negotiate access
IP MTU 1492 <= Modify MTU value for ADSL network
IP nat outside <= to enable NAT conversion, set this port as an external network
Encapsulation PPP <= using the frame format of PPP
Dialer Pool 1
PPP authentication pap callin <= set dial-up authentication mode to PAP
PPP PAP sent VIP pass VIP <= send username and password
IP nat inside source List 1 interface Dialer1 overload <= set NAT conversion, using dialer 1 port dynamic Address

IP classless
IP route 0.0.0.0 0.0.0.0 dialer1 <= sends all routable datagrams to the ADSL line, setting the default route
No IP HTTP Server
!
Access-list 1 Permit 192.168.0.0 0.0.0.255


-------------------------------------

The PPPoE configuration of the Cisco router connecting to the ADSL modem:

Hostname Bjsite
!
IP Subnet-zero
No IP domain-lookup
!
VPDN Enable
No VPDN logging
!
Vpdn-group 1
Request-dialin
Protocol PPPoE
!
Interface ethernet0/0
IP address 192.168.0.1 255.255.255.0
IP nat Inside
No IP mroute-cache
!
!
!
!
Interface ETHERNET0/1
No IP address
PPPoE Enable
Pppoe-client Dial-pool-number 1
!
Interface Dialer1
IP address negotiated
IP Nat Outside
IP MTU 1492
Encapsulation PPP
No IP mroute-cache
Dialer Pool 1
Dialer-group 1
PPP Authentication PAP
PPP pap sent-username dg48907653@163.gd password xxxxxxxx
!
IP classless
No IP HTTP Server
!
Dialer-list 1 Protocol IP Permit
IP nat inside source List 1 interface Dialer1 overload
IP Route 0.0.0.0 0.0.0.0 dialer1
Access-list 1 Permit 192.168.0.0 0.0.0.255
!
Line con 0
Exec-timeout 0 0
Transport input None
Line vty 0 4
Login
!
End

Cisco router connects to the ADSL WIC card's PPPoE configuration:
Vpdn-group PPPoE
Request-dialin

!---We are the PPPoE client requesting to establish
!---a session with the aggregation unit (6400 NRP).

Protocol PPPoE
!


!---Internal Ethernet Network.

!
Interface FastEthernet0
IP address 10.92.1.182 255.255.255.0
IP nat Inside


!---DSL interface.

!
Interface ATM0
No IP address
No ATM ilmi-keepalive
Bundle-enable
DSL Operating-mode Auto
Hold-queue 224 in

!---all defaults.




!---PPPoE runs on top of Aal5snap, but
!---encap aal5snap command is not used.

!
Interface ATM0.1 Point-to-Point
PVC 1/1
Pppoe-client Dial-pool-number 1

!---PVC 1/1 is a example value that must to changed
!---to match the value used by the ISP.

!



!---The PPPoE client code ties into a dialer interface upon
!---which a virtual-access interface is cloned.

!
Interface Dialer1
IP address negotiated
IP MTU 1492

!---Ethernet MTU default = 1500 (1492 + PPPoE headers = 1500)

IP Nat Outside
Encapsulation PPP
Dialer Pool 1

!---Ties to ATM interface.

PPP Authentication CHAP Callin
PPP chap hostname <username>
PPP chap password <password>
!

!---the ISP instruct you regarding
!---the type of authentication to use.
!---to change from PPP CHAP to PPP PAP,
!---Replace the following three lines:
!---PPP Authentication CHAP callin
!---PPP chap hostname <username>
!---PPP chap password <password>
!---with the following two lines:
!---PPP authentication pap callin
!---PPP pap sent-username <username> password <password>


!---for NAT We are going to overload on the Dialer1
!---interface and add a default route out
!---since dialer IP address can change.

IP nat inside source List 1 interface Dialer1 overload
IP classless
IP Route 0.0.0.0 0.0.0.0 dialer1
No IP HTTP Server
!
Access-list 1 Permit 10.92.1.0 0.0.0.255
-------------------------------------------



Use Cisco router to do PPPoE server-side configuration


En
Conf t
Hostname Adsl_walkbird
Username Walkbird Password Walkbird
VPDN Enable
Vpdn-group PPPoE
Accept-dialin
Protocol PPPoE
Virtual-template 1
Exit
Exit
Interface Ethernet 0/0
PPPoE Enable
No shutdown
Interface Virtual-template 1
MTU 1492//PPP Header Maximum Transmission unit
IP unnumbered loopback//borrowing address
Peer default IP address pool Pppoe_ip_pool
Encapsulation PPP
PPP Authentication PAP
Exit
IP local pool pppoe_ip_pool 11.11.11.10 11.11.11.100
Interface Lookback0
IP Address 1.1.1.1 255.255.255.0
No shutdown
Exit
Third, the experimental test
SH IP route
SH IP int Brief
Debug PPPoE Event
SH IP int Dialer 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.