Reassigning a Debug Profile Before Troubleshooting PPP and PPPoE Dynamic Interfaces

You can issue the profile-reassign command to help you use PPP and PPPoE packet–logging capabilities to debug and troubleshoot PPP and PPPoE dynamic interfaces. To use the profile-reassign command, you must access Privileged Exec mode at privilege level 5 or higher.

The profile-reassign command enables you to reassign the profile currently assigned to the specified encapsulation type for the specified ATM 1483 subinterface. In effect, you swap the currently assigned nondebug profile for a debug profile that has identical attributes with the addition of one or more PPP or PPPoE packet–logging attributes enabled.

To reassign a profile:

  1. Create a debug profile that includes the same attributes as an existing nondebug profile, with the addition of one or more PPP or PPPoE packet–logging attributes enabled.

    Observe the following guidelines when you create the debug profile:

    • Because PPP and PPPoE packet logging is performed at log severity 7 (debug priority), configure a destination such as the console to log severity level 7 and issue the log here command to enable packet capture using the debug profile you created.
    • Before you reassign the debug profile to the ATM 1483 subinterface, make sure that the number of PPP dynamic interfaces has not already exceeded the maximum number of aggregate dynamic and static PPP interfaces for which you can log PPP packets. For more information about this and other system maximums, see JunosE Release Notes, Appendix A, System Maximums.

    For details about creating and using profiles, see Dynamic Interface Configuration Using a Profile.

  2. Access Privileged Exec mode at privilege level 5 or higher.
    host1>enable 5 Password: ********* host1#

    Note: The router prompts you for a password only if you have configured a password to control access to Privileged Exec mode. For details about setting passwords to access various command privilege levels, see Passwords and Security in JunosE System Basics Configuration Guide.

  3. From Privileged Exec mode, issue the profile-reassign command to replace the nondebug profile currently assigned to the specified encapsulation type for the specified ATM 1483 interface with the debug profile created in Step 1.

    You must specify one of the following encapsulation types to which the debug profile applies: ppp, pppoe, or any. You can use the any encapsulation type if neither the ppp encapsulation type nor the pppoe encapsulation type has an existing profile assignment.

    Note: Issuing the profile-reassign command causes the router to tear down any dynamic interfaces that exist above the ATM 1483 subinterface. After the profile is reassigned, the router restores the interfaces based on the necessary client reconnections. If the ATM 1483 subinterface is currently shut down, issuing the profile-reassign command does not reestablish the interface connection.

    • To facilitate debugging for the ppp encapsulation type:
      host1#profile-reassign atm 2/0.101 ppp pppLogConfig WARNING: Execution of this command will cause all dynamic interfaces over
      atm 2/0.101 to be torn-down.
      Proceed with profile reassignment? [confirm] yes Profile pppConfig replaced by profile pppLogConfig for ppp.
    • To facilitate debugging for the any encapsulation type:
      host1#profile-reassign atm 3/0.101 any anyLogConfig WARNING: Execution of this command will cause all dynamic interfaces over
      atm 3/0.101 to be torn-down.
      Proceed with profile reassignment? [confirm] yes Profile anyConfig replaced by profile anyLogConfig for any.
  4. (Optional) Use the appropriate show command to verify the profile reassignment. For example:
    host1#show atm subinterface atm 2/0.101

    When you reassign a debug profile to an ATM 1483 subinterface, the reassignment is stored in NVS and persists after a reboot. If you issue the show atm subinterface or show configuration command after the profile is reassigned, these commands display the new profile assignment.

  5. (Optional) To restore the initial (nondebug) profile assignment after you troubleshoot the dynamic interface, issue the profile-reassign command again using the name of the nondebug profile.
    host1#profile-reassign atm 2/0.101 ppp pppConfig WARNING: Execution of this command will cause all dynamic interfaces over
    atm 2/0.101 to be torn-down.
    Proceed with profile reassignment? [confirm] yes Profile pppLogConfig replaced by profile pppConfig for ppp.

Related Documentation