En la versión 12.1(3)XG del software Cisco IOS®, se introdujo una función cliente de protocolo punto a punto sobre Ethernet (PPPoE) para Cisco Small Office/Home Office (SOHO) 77. La función permite que la funcionalidad PPPoE se traslade al router. Se pueden instalar varios PC detrás del Cisco SOHO77 y, antes de que su tráfico se envíe a la sesión PPPoE, los datos se pueden cifrar y filtrar, y se puede ejecutar la traducción de direcciones de red (NAT).
Este documento muestra un cliente PPPoE configurado en la interfaz de Asynchronous Transfer Mode (ATM) (interfaz DSL) del Cisco SOHO77. Esta configuración también puede usarse en un Cisco 1700 con un Asymmetric Digital Subscriber Line (ADSL) WAN Interface Card (WIC).
La configuración del procesador de la ruta del nodo (NRP) de Cisco 6400 también puede aplicarse a otro router que se utiliza como un agregador y con una interfaz ATM.
No hay requisitos específicos para este documento.
La información que contiene este documento se basa en las siguientes versiones de software y hardware.
Software Cisco SOHO77 Customer Premises Equipment (CPE) IOS, versión 12.1(3)XP2
Versión 12.1(3)DC1 del software del IOS de Cisco 6400 UAC-NRP
Versión 12.1(3)DB del software del IOS de Cisco 6400 UAC-NSP
Software Cisco 6130 DSLAM-NI2 IOS versión 12.1(5)DA
La información que se presenta en este documento se originó a partir de dispositivos dentro de un ambiente de laboratorio específico. All of the devices used in this document started with a cleared (default) configuration. Si la red está funcionando, asegúrese de haber comprendido el impacto que puede tener un comando antes de ejecutarlo.
Para obtener más información sobre las convenciones del documento, consulte Convenciones de Consejos Técnicos de Cisco.
En esta sección encontrará la información para configurar las funciones descritas en este documento.
Nota: Para encontrar información adicional sobre los comandos usados en este documento, utilice la Command Lookup Tool (sólo clientes registrados) .
En este documento, se utiliza esta configuración de red:
En este documento, se utilizan estas configuraciones:
Cisco SOHO77
6400 de Cisco
PPPoE se configura en el Cisco SOHO77 con los comandos de la red virtual de acceso telefónico privada (VPDN). Asegúrese de configurar estos comandos primero.
Cisco SOHO77 |
---|
! vpdn enable no vpdn logging !--- Default. ! vpdn-group pppoe request-dialin !--- The PPPoE client requests a session with the aggregation unit (6400 NRP). protocol pppoe ! !--- Internal Ethernet network. ! interface Ethernet0 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 the 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 an example value that you must change to match the value !--- used by the Internet Service Provider (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 is 1500 by default. In other words, 1492 + PPPoE headers = 1500. ip nat outside encapsulation ppp dialer pool 1 !--- Ties to ATM interface. ppp authentication chap callin ppp chap hostname <hostname> ppp chap password <password> ! !--- The ISP instructs you about 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 |
6400 de Cisco |
---|
*** local ppp user !--- You can also use AAA. username |
Actualmente, no hay un procedimiento de verificación disponible para esta configuración.
En esta sección encontrará información que puede utilizar para solucionar problemas y depurar la configuración.
Para depurar el cliente PPPoE en Cisco SOHO77 o Cisco 6400, debe considerar la pila de protocolos. El proceso de resolución de problemas comienza en la capa inferior del protocolo.
Capa física DSL
Capa ATM
Capa Ethernet
Capa PPP
Asegúrese de que la línea esté activa y entrenada.
Ingrese los comandos show como se indica en este ejemplo. La salida resultante indica el estado de la línea.
show int atm0 ATM0 is up, line protocol is up Hardware is PQUICC_SAR (with Alcatel ADSL Module) show dsl interface atm0 !--- Look for "Showtime" in the first few lines. ATU-R (DS) ATU-C (US) Modem Status: Showtime (DMTDSL_SHOWTIME)
Si la interfaz ATM está activa, puede utilizar el comando debug atm packets para ver si llega algo del ISP.
Nota: No verá los paquetes salientes con este comando debido a la forma en que se procesan los paquetes.
Ingrese el comando debug atm packets tal como se muestra en este ejemplo.
debug atm packet 03:21:32: ATM0(I): VCD:0x2 VPI:0x1 VCI:0x1 Type:0x0 SAP:AAAA CTL:03 OUI:0080C2 TYPE:0007 Length:0x30 03:21:32: 0000 0050 7359 35B7 0001 96A4 84AC 8864 1100 0001 000E C021 09AB 000C 0235 03:21:32: 279F 0000 0000 03:21:32:
El resultado como se muestra arriba, debe contener los mismos campos Type, SAP, CTL y OUI para indicar que el paquete ATM entrante es AAL5SNAP.
Las tramas Ethernet completas se encuentran en los paquetes AAL5SNAP. No hay ningún comando debug ethernet packet, pero debe realizar algunas operaciones de depuración VPDN para ver las tramas PPPoE.
Para referencia, una trama Ethernet que es una trama PPPoE contiene uno de dos tipos de Ethernet:
0x8863 Ethertype = paquete de control PPPoE (administra la sesión PPPoE)
0x8864 Ethertype = Paquete de datos PPPoE (contiene paquetes PPP)
Es importante resaltar que hay dos sesiones en PPPoE. La sesión PPPoE, que es una sesión de tipo VPDN L2TP y la sesión PPP. Por lo tanto, para establecer PPPoE, se incluye una etapa de establecimiento de sesión PPPoE y una etapa de establecimiento de sesión PPP.
La terminación involucra una fase de terminación PPP y una fase de terminación PPPoE.
La fase de establecimiento de PPPoE consta de dos pasos:
Paso 1: Identifique el cliente y el servidor PPPoE (las direcciones MAC).
Paso 2: Asigne una ID de sesión.
Después de que esto se complete, el establecimiento PPP normal ocurre como cualquier otra conexión PPP.
Para depurar, utilice las depuraciones VPDN PPPoE para determinar si la fase de conexión PPPoE es exitosa.
Ingrese un comando debug como se muestra en este ejemplo:
#debug vpdn pppoe-events 06:17:58: Sending PADI: vc=1/1 !--- A broadcast Ethernet frame (here, encapsulated in ATM) requests !--- a PPPoE server with the message, "Is there a PPPoE server out there?" 06:18:00: PPPOE: we have got our pado, and the pado timer went off !--- This is a unicast reply from a PPPoE server (similar to a DHCP offer). 06:18:00: OUT PADR from PPPoE tunnel !--- This is a unicast reply to accept the offer. 06:18:00: IN PADS from PPPoE tunnel !--- This is a confirmation that completes the establishment.
Inicie la conexión PPP. Comenzará ahora el establecimiento de PPP como en cualquier otra iniciación del PPP. Después de establecer la sesión PPPoE, puede utilizar los comandos show vpdn para obtener el estado, como se muestra aquí:
#show vpdn %No active L2TP tunnels %No active L2F tunnels PPPoE Tunnel and Session Information Total tunnels 1 sessions 1 PPPoE Tunnel Information Session count: 1 PPPoE Session Information SID RemMAC LocMAC Intf VASt OIntf VC 1 0050.7359.35b7 0001.96a4.84ac Vi1 UP AT0 1 1
Obtenga información de conteo de paquetes con el comando show vpdn session all, como se muestra aquí:
show vpdn session all %No active L2TP tunnels %No active L2F tunnels PPPoE Session Information Total tunnels 1 sessions 1 session id: 1 local MAC address: 0001.96a4.84ac, remote MAC address: 0050.7359.35b7 virtual access interface: Vi1, outgoing interface: AT0, vc: 1/1 1656 packets sent, 1655 received, 24516 bytes sent, 24486 received
Otros comandos de depuración potencialmente útiles incluyen la depuración de datos vpdn pppoe, la depuración de errores pppoe y la depuración de paquetes pppoe.
Una vez establecida la sesión PPPoE, las depuraciones PPP son las mismas que para cualquier otro establecimiento PPP. Se utilizan los mismos comandos debug ppp negotiation y debug ppp authentication
Nota: En el siguiente ejemplo, el nombre de host es "client1" y el nombre del Cisco 6400 remoto es "nrp-b".
Active la negociación PPP o la autenticación PPP desde la línea de comandos. La salida resultante se parecerá a lo siguiente:
06:36:03: Vi1 PPP: Treating connection as a callout 06:36:03: Vi1 PPP: Phase is ESTABLISHING, Active Open [0 sess, 1 load] 06:36:03: Vi1 PPP: No remote authentication for call-out 06:36:03: Vi1 LCP: O CONFREQ [Closed] id 1 len 10 06:36:03: Vi1 LCP: MagicNumber 0x03013D43 (0x050603013D43) 06:36:03: Vi1 LCP: I CONFACK [REQsent] id 1 len 10 06:36:03: Vi1 LCP: MagicNumber 0x03013D43 (0x050603013D43) 06:36:05: Vi1 LCP: I CONFREQ [ACKrcvd] id 2 len 15 06:36:05: Vi1 LCP: AuthProto CHAP (0x0305C22305) 06:36:05: Vi1 LCP: MagicNumber 0x65E315E5 (0x050665E315E5) 06:36:05: Vi1 LCP: O CONFACK [ACKrcvd] id 2 len 15 06:36:05: Vi1 LCP: AuthProto CHAP (0x0305C22305) 06:36:05: Vi1 LCP: MagicNumber 0x65E315E5 (0x050665E315E5) 06:36:05: Vi1 LCP: State is Open 06:36:05: Vi1 PPP: Phase is AUTHENTICATING, by the peer [0 sess, 1 load] 06:36:05: Vi1 CHAP: I CHALLENGE id 9 len 26 from "nrp-b" 06:36:05: Vi1 CHAP: Using alternate hostname client1 06:36:05: Vi1 CHAP: Username nrp-b not found 06:36:05: Vi1 CHAP: Using default password 06:36:05: Vi1 CHAP: O RESPONSE id 9 len 28 from "client1" 06:36:05: Vi1 CHAP: I SUCCESS id 9 len 4 06:36:05: Vi1 PPP: Phase is FORWARDING [0 sess, 1 load] 06:36:05: Vi1 PPP: Phase is AUTHENTICATING [0 sess, 1 load] 06:36:05: Vi1 PPP: Phase is UP [0 sess, 1 load] 06:36:05: Vi1 IPCP: O CONFREQ [Closed] id 1 len 10 06:36:05: Vi1 IPCP: Address 0.0.0.0 (0x030600000000) 06:36:05: Vi1 CDPCP: O CONFREQ [Closed] id 1 len 4 06:36:05: Vi1 IPCP: I CONFREQ [REQsent] id 1 len 10 06:36:05: Vi1 IPCP: Address 8.8.8.1 (0x030608080801) 06:36:05: Vi1 IPCP: Address 8.8.8.1 (0x030608080801) 06:36:05: Vi1 IPCP: Address 9.9.9.2 (0x030609090902) 06:36:05: Vi1 IPCP: O CONFREQ [ACKsent] id 2 len 10 06:36:05: Vi1 IPCP: Address 9.9.9.2 (0x030609090902) 06:36:05: Vi1 LCP: I PROTREJ [Open] id 3 len 10 protocol CDPCP (0x820701010004) 06:36:05: Vi1 CDPCP: State is Closed 06:36:05: Vi1 IPCP: I CONFACK [ACKsent] id 2 len 10 06:36:05: Vi1 IPCP: Address 9.9.9.2 (0x030609090902) 06:36:05: Vi1 IPCP: State is Open 06:36:05: Di1 IPCP: Install negotiated IP interface address 9.9.9.2 06:36:05: Di1 IPCP: Install route to 8.8.8.1 06:36:06: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access1, changed state to up
Para depurar Cisco 6400 (el servidor PPPoE), puede usar el mismo procedimiento ascendente que utilizó para Cisco SOHO77 (el cliente). La diferencia está en la capa física de DSL, donde debe verificar el DSLAM.
Capa física DSL
Capa ATM
Capa Ethernet
Capa PPP
Para verificar la capa física de la DSL, debe ver las estadísticas del DSL en el DSLAM. Para los Cisco DSLAM, utilice el comando show dsl interface.
En el lado de Cisco 6400, también puede utilizar un comando debug atm packet y habilitar el Cisco 6400 para un PVC específico.
Ingrese debug atm packet con los parámetros apropiados desde la línea de comandos, de la siguiente manera:
debug atm packet interface atm 0/0/0.182 vc 1/82
La salida resultante se asemeja a lo siguiente:
4d04h: ATM0/0/0.182(I): VCD:0x3 VPI:0x1 VCI:0x52 Type:0x900 SAP:AAAA CTL:03 OUI:0080C2 TYPE:0007 Length:0x30 4d04h: 0000 0001 96A4 84AC 0050 7359 35B7 8864 1100 0001 000E C021 0A2E 000C 65E3 4d04h: 15E5 0000 0000
Nota: No verá los paquetes salientes con este comando debido a la forma en que se procesan los paquetes.
Los mismos comandos show de VPDN y las depuraciones usadas en el Cisco SOHO77 se pueden utilizar en el Cisco 6400 para ver el establecimiento PPPoE.
Los siguientes ejemplos ilustran los comandos show y debug en contexto, junto con el resultado que producen. Use estos comandos como sea necesario.
#debug vpdn pppoe-events 4d04h: IN PADI from PPPoE tunnel 4d04h: OUT PADO from PPPoE tunnel 4d04h: IN PADR from PPPoE tunnel 4d04h: PPPoE: Create session 4d04h: PPPoE: VPN session created. 4d04h: OUT PADS from PPPoE tunnel #show vpdn %No active L2TP tunnels %No active L2F tunnels PPPoE Tunnel and Session Information Total tunnels 1 sessions 1 PPPoE Tunnel Information Session count: 1 PPPoE Session Information SID RemMAC LocMAC Intf VASt OIntf VC 1 0001.96a4.84ac 0050.7359.35b7 Vi4 UP AT0/0/0 1 82 #show vpdn session all nrp-b#show vpdn session all %No active L2TP tunnels %No active L2F tunnels PPPoE Session Information Total tunnels 1 sessions 1 session id: 1 local MAC address: 0050.7359.35b7, remote MAC address: 0001.96a4.84ac virtual access interface: Vi4, outgoing interface: AT0/0/0, vc: 1/82 30 packets sent, 28 received, 422 bytes sent, 395 received
Otros comandos de depuración incluyen debug vpdn pppoe-data, debug pppoe-errors y debug pppoe-packets.
A continuación se muestra la salida de depuración PPP del Cisco 6400 que corresponde a la depuración anterior del Cisco SOHO77.
Ingrese este comando desde la interfaz de línea de comandos:
debug ppp negotiation and debug ppp authentication
El resultado es similar al siguiente:
4d04h: Vi2 PPP: Treating connection as a dedicated line 4d04h: Vi2 PPP: Phase is ESTABLISHING, Active Open [0 sess, 1 load] 4d04h: Vi2 LCP: O CONFREQ [Closed] id 1 len 15 4d04h: Vi2 LCP: AuthProto CHAP (0x0305C22305) 4d04h: Vi2 LCP: MagicNumber 0x65F62814 (0x050665F62814) 4d04h: Vi2 LCP: I CONFREQ [REQsent] id 1 len 10 4d04h: Vi2 LCP: MagicNumber 0x03144FF9 (0x050603144FF9) 4d04h: Vi2 LCP: O CONFACK [REQsent] id 1 len 10 4d04h: Vi2 LCP: MagicNumber 0x03144FF9 (0x050603144FF9) 4d04h: Vi3 LCP: I ECHOREQ [Open] id 60 len 8 magic 0xA60C0000 4d04h: Vi3 LCP: O ECHOREP [Open] id 60 len 8 magic 0x51A0BEF6 4d04h: Vi2 LCP: TIMEout: State ACKsent 4d04h: Vi2 LCP: O CONFREQ [ACKsent] id 2 len 15 4d04h: Vi2 LCP: AuthProto CHAP (0x0305C22305) 4d04h: Vi2 LCP: MagicNumber 0x65F62814 (0x050665F62814) 4d04h: Vi2 LCP: I CONFACK [ACKsent] id 2 len 15 4d04h: Vi2 LCP: AuthProto CHAP (0x0305C22305) 4d04h: Vi2 LCP: MagicNumber 0x65F62814 (0x050665F62814) 4d04h: Vi2 LCP: State is Open 4d04h: Vi2 PPP: Phase is AUTHENTICATING, by this end [0 sess, 1 load] 4d04h: Vi2 CHAP: O CHALLENGE id 10 len 26 from "nrp-b" 4d04h: Vi2 CHAP: I RESPONSE id 10 len 28 from "client1" 4d04h: Vi2 PPP: Phase is FORWARDING [0 sess, 1 load] 4d04h: Vi2 PPP: Phase is AUTHENTICATING [0 sess, 1 load] 4d04h: Vi2 CHAP: O SUCCESS id 10 len 4 4d04h: Vi2 PPP: Phase is UP [0 sess, 1 load] 4d04h: Vi2 IPCP: O CONFREQ [Closed] id 1 len 10 4d04h: Vi2 IPCP: Address 8.8.8.1 (0x030608080801) 4d04h: Vi2 IPCP: I CONFREQ [REQsent] id 1 len 10 4d04h: Vi2 IPCP: Address 0.0.0.0 (0x030600000000) 4d04h: Vi2 IPCP: Pool returned 9.9.9.2 4d04h: Vi2 IPCP: O CONFNAK [REQsent] id 1 len 10 4d04h: Vi2 IPCP: Address 9.9.9.2 (0x030609090902) 4d04h: Vi2 CDPCP: I CONFREQ [Not negotiated] id 1 len 4 4d04h: Vi2 LCP: O PROTREJ [Open] id 3 len 10 protocol CDPCP (0x820701010004) 4d04h: Vi2 IPCP: I CONFACK [REQsent] id 1 len 10 4d04h: Vi2 IPCP: Address 8.8.8.1 (0x030608080801) 4d04h: Vi2 IPCP: I CONFREQ [ACKrcvd] id 2 len 10 4d04h: Vi2 IPCP: Address 9.9.9.2 (0x030609090902) 4d04h: Vi2 IPCP: O CONFACK [ACKrcvd] id 2 len 10 4d04h: Vi2 IPCP: Address 9.9.9.2 (0x030609090902) 4d04h: Vi2 IPCP: State is Open 4d04h: Vi2 IPCP: Install route to 9.9.9.2 4d04h: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access2, changed state to up