|
|
This chapter describes the commands used to create, modify, delete, and display user-defined profiles. The commands to display profile information also apply to the permanent profiles. A discussion on how profiles are used in Cisco 700 series routers is located in Appendix B, "Using Profiles with Cisco 700 Series Routers."
To delete a profile, use the reset user command.
REset USer username| username | Name of the profile to be deleted. |
None
System or profile mode
The profile is removed and you are returned to system mode.
The following steps delete the user-defined profile named 2503:
Step 1 Enter the reset user command:
reset user 2503
Step 2 Enter y in response to the verification prompt:
y
If you do not want to delete the profile, enter n or press Return without responding to the request.
set user
show user
To set a profile to active, use the set active command.
SEt ACtive [username]| username | When executed in system mode, the named profile is set to active. In profile mode, the username is not necessary; the profile from which the command is issued is set to active. |
None
System or profile mode
Newly created profiles are inactive by default. Profiles are active after the set active command has been issued and a reboot is performed.
When a profile is active, outgoing WAN packets cause a call to be made to a WAN switch (if on-demand dialing is enabled with the set auto command). All incoming calls are answered.
When a profile is inactive, outgoing WAN packets do not cause the router to automatically dial out. The call must be initiated manually with the call command before the router will forward the packets. However, all incoming calls are answered.
The following example configures profile 2503 to be active and opens a connection:
Host> set active 2503
Connection 2 opened
set auto
set inactive
set user
To set a profile to inactive, use the set inactive command.
SEt INactive [username]| username | Username of the profile to be deactivated. |
None
System or profile mode
Newly created profiles are inactive by default. Profiles are active after the set active command has been issued and a reboot is performed.
When a profile is active, outgoing WAN packets cause a call to be made to a WAN switch (if on-demand dialing is enabled with the set auto command). All incoming calls are answered.
When a profile is inactive, outgoing WAN packets do not cause the router to automatically dial out. The call must be initiated manually with the call command before the router will forward the packets. However, all incoming calls are answered.
The following example sets the profile 2503 to be inactive:
Host> set inactive 2503
Connection 2 closed
set auto
set active
set user
To change a profile name and profile activity status after power on and call disconnect, use the set profile command:
SEt PROFile [POwerup = ACtive | INactive] [DIsconnect = DEactivate | KEep] [USer = new profile name]Syntax Description
| powerup | Profile activation state when the router is powered on. |
| active | Profile becomes active when the router is powered on. If a profile is set to active, outgoing WAN packets cause a call to be made to a WAN switch (if on-demand dialing is enabled with the set auto command). All incoming calls are answered. |
| inactive | Profile is inactive when the router is powered on. If a profile is set to inactive, outgoing WAN packets do not cause the router to dial out automatically. The call can be initiated manually with the call command. However, all incoming calls are answered. |
| disconnect | Profile activation state when the physical connection has been terminated. |
| deactivate | Profile becomes inactive when all the links of its physical connection are disconnected. |
| keep | Profile remains active when all the links of its physical connection are disconnected. |
| user | Use to change the name of an existing profile. |
powerup active
disconnect keep
Profile mode
Incoming calls from a remote device associated with a profile cause that profile to become active regardless of the profile activity settings.
The following example configures the profile 2503 to be inactive after the unit powers up, and inactive after all physical links to a remote device are disconnected:
Host:2503> set profile powerup inactive disconnect deactivate
To associate the Ethernet address of a WAN switch with a profile, use the set profile id command.
SEt PROfile ID ethernetaddress| ethernetaddress | Ethernet address of a remote device associated with the profile. Every profile must have an Ethernet address entered with this command.
When the router receives a call, it uses the Ethernet address of a remote device to locate the correct profile. |
No Ethernet address configured.
Profile mode
The following example configures the profile 2503 with the Ethernet address of the calling router:
Host:2503> set profile id 00000c0012ff
To create a new user-defined profile or modify the name of an existing user-defined profile, use the set user command.
SEt USer [username] [INcoming | OUTgoing]| username | Name of the profile. A profile name can be 1 to 64 characters long. Names are case sensitive only when they are displayed and used for authentication. |
| incoming | The profile is initialized for incoming calls only. The profile must have the following values:
· Powerup inactive (change with the set profile command) · Disconnect deactivate (change with the set profile command) · On-demand dialing off (change with the set auto command) If this keyword is not specified, the profile applies to both incoming and outgoing calls. |
| outgoing | The profile is initialized for incoming or outgoing calls. The profile must have the following values:
· Powerup active (change with the set profile command) · Disconnect keep (change with the set profile command) · On-demand dialing on (change with the set auto command) |
In system mode, the command creates a new user-defined profile if a profile by that name does not already exist, or changes the status of an existing profile. In profile mode, it changes the name and the status of the user-defined profile. The incoming and outgoing keywords are shortcuts for the set profile and set auto commands.
Outgoing
System or profile mode
The following example configures a new profile named 2503:
Host>set user2503outgoingHost:2503>
The following example changes an outgoing profile to be optimized for incoming calls:
Host>set user2503incomingHost:2503>
set auto
set profile
To display the Ethernet address and activity status of the current profile, use the show profile command.
SHow PRofileThis command has no keywords or arguments.
System or profile mode
The following example shows output from the show profile command for profile 2503:
Host:2503> show profile
Profile for user
Ethernet Address 00 00 00 00 00 00
Power Up ACTIVATE
Disconnect KEEP
Table 3-1 describes the fields shown in the display.
| Field | Description |
|---|---|
| Ethernet Address | Ethernet address of the WAN switch associated with the profile. Configured with the set profile id command. |
| Powerup | Indicates whether the profile is active when the router is powered on. Configured with the set active command. |
| Disconnect | Indicates if the profile remains active after a physical connection to the WAN switch has been terminated. Configured with the set active command. |
| <*> | Indicates the value applies to this profile only. |
To return profile-configured parameters to the profile template value, use the unset command.
UNset commandparametercommandparameter | Original set command used to configure the parameter. |
None
Profile mode
Table 3-2 lists the original command modifiers that can be unset.
| Original Command | Unset Command Syntax |
|---|---|
| set auto | unset link auto |
| set bridging | unset bridging |
| set caller ID | unset callerid |
| set compression | unset compression |
| demand | unset link demand |
| set learn | unset learn |
| set number | unset link number |
| set ppp authentication | unset ppp authentication |
| set ppp callback | unset ppp callback |
| set ppp password host | unset ppp password host |
| set ppp secret host | unset ppp secret host |
| set passthru | unset passthru |
| set ringback | unset link ringback |
| set speed | unset speed |
| set timeout | unset link timeout |
The following example returns the PPP client password in the user-defined profile 2503 to the password in the profile template:
Host:2503> unset ppp password client
|
|