Table Of Contents
set default portstatus
set enablepass
set errdisable-timeout
set errordetection
set feature mdg
set garp timer
set gmrp
set gmrp fwdall
set gmrp registration
set gmrp timer
set gvrp
set gvrp applicant
set gvrp dynamic-vlan-creation
set gvrp registration
set gvrp timer
set igmp
set igmp fastleave
set igmp mode
set inlinepower defaultallocation
set interface
set ip alias
set ip dns
set ip dns domain
set ip dns server
set ip fragmentation
set ip http port
set ip http server
set ip permit
set ip redirect
set ip route
set ip unreachable
set kerberos clients mandatory
set kerberos credentials forward
set kerberos local-realm
set kerberos realm
set kerberos server
set kerberos srvtab entry
set kerberos srvtab remote
set key config-key
set lcperroraction
set lda
set length
set logging console
set logging history
set logging level
set logging server
222
set default portstatus
Use the set default portstatus command to set the default port status.
set default portstatus {enable | disable}
Syntax Description
enable
|
Keyword to activate default port status.
|
disable
|
Keyword to deactivate default port status.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When you enter the clear config all command or in the event of a configuration loss, all ports collapse into VLAN 1. This might cause a security and network instability problem. Entering the set default portstatus command puts all ports into a disable state and blocks the traffic flowing through the ports during a configuration loss. You can then manually configure the ports back to the enable state.
After you enter the set default portstatus command, you must reset the system so the new configuration setup can take effect.
This command is not saved in the configuration file.
Once you set the default port status, the default port status does not clear when you enter the clear config all command.
Examples
This example shows how to disable the default port status:
Console> (enable) set default portstatus disable
port status set to disable.
WARNING: Please reset the system to have new setup in effect.
Related Commands
show default
set enablepass
Use the set enablepass command to change the password for the privileged level of the CLI.
set enablepass
Syntax Description
This command has no arguments or keywords.
Defaults
The default configuration has no enable password configured.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
Passwords are case sensitive and may be 0 to 19 characters in length, including spaces.
The command prompts you for the old password. If the password you enter is valid, you are prompted to enter a new password and to verify the new password.
Examples
This example shows how to establish a new password:
Console> (enable) set enablepass
Enter old password: <old_password>
Enter new password: <new_password>
Retype new password: <new_password>
Related Commands
enable
set password
set errdisable-timeout
Use the set errdisable-timeout command to configure a timeout for ports in errdisable state, after which the ports are reenabled automatically.
set errdisable-timeout {enable | disable} {reason}
set errdisable-timeout interval {interval}
Syntax Description
enable
|
Keyword to enable errdisable timeout.
|
disable
|
Keyword to disable errdisable timeout.
|
reason
|
Reason for the port being in the errdisable state; valid values are bpdu-guard, channel-misconfig, duplex-mismatch, udld, other, and all.
|
interval interval
|
Timeout interval; valid values are from 30 to 86400 seconds (30 seconds to 24 hours).
|
Defaults
The default is disable and the interval is 300 seconds.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The errdisable timeout feature allows you to configure a timeout period for ports in errdisable state. When this feature is enabled, ports are reenabled automatically after the timeout interval has elapsed.
A port enters errdisable state for the following reasons (these reasons appear as configuration options with the set errdisable-timeout enable command):
•
Channel misconfiguration
•
Duplex mismatch
•
BPDU port-guard
•
UDLD
•
Other (reasons other than the above)
•
All (apply errdisable timeout to all reasons)
You can enable or disable errdisable timeout for each of the above listed reasons. The ports in errdisable state for reasons other than the first four reasons are considered "other." If you specify other, all ports errdisabled by causes other than the first four reasons are enabled for errdisable timeout. If you specify "all," all ports errdisabled for any reason are enabled for errdisable timeout.
Examples
This example shows how to enable an errdisable timeout for BPDU guard causes:
Console> (enable) set errdisable-timeout enable bpdu-guard
Successfully enabled errdisable-timeout for bpdu-guard.
This example shows how to set an errdisable timeout interval to 450 seconds:
Console> (enable) set errdisable-timeout interval 450
Successfully set errdisable timeout to 450 seconds.
Related Commands
show errdisable-timeout
set errordetection
Use the set errordetection command set to enable or disable various error detections.
set errordetection inband {enable | disable}
set errordetection memory {enable | disable}
Syntax Description
enable
|
Keyword to enable the specified error detection.
|
disable
|
Keyword to disable the specified error detection.
|
inband
|
Keyword to specify inband error detection.
|
memory
|
Keyword to specify memory error detection.
|
Defaults
The default is portcounters error detection is enabled, and memory and inband error detection is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
The inband keyword is not supported.
Examples
This example shows how to enable memory error detection:
Console> (enable) set errordetection memory enable
Memory error detection enabled.
Related Commands
show errordetection
set feature mdg
Use the set feature mdg command to enable or disable the multiple default gateway feature.
set feature mdg {enable | disable}
Syntax Description
enable
|
Keyword to enable the multiple default gateway.
|
disable
|
Keyword to disable the multiple default gateway.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privilege.
Usage Guidelines
If you enable the multiple default gateway feature, the Catalyst 6000 family switch pings the default gateways every 10 seconds to verify the gateways are still available.
Examples
This example shows how to enable the multiple default gateway feature:
Console> (enable) set feature mdg enable
Multiple Gateway feature enabled.
This example shows how to disable the multiple default gateway feature:
Console> (enable) set feature mdg disable
Multiple Gateway feature disabled.
set garp timer
Use the set garp timer command to adjust the values of the join, leave, and leaveall timers.
set garp timer {timer_type} {timer_value}
Syntax Description
timer_type
|
Type of timer; valid values are join, leave, and leaveall.
|
timer_value
|
Timer values in milliseconds; valid values are from 1 to 2147483647 milliseconds.
|
Defaults
The default is the join timer default is 200 ms, the leave timer default is 600 ms, and the leaveall timer default is 10000 ms.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You must maintain the following relationship for the various timer values:
•
Leave time must be greater than or equal to three times the join time.
•
Leaveall time must be greater than the leave time.
Caution 
Set the same GARP application (for example, GMRP and GVRP) timer values on all Layer 2-connected devices. If the GARP timers are set differently on the Layer 2-connected devices, GARP applications will not operate successfully.
Note
The modified timer values are applied to all GARP application (for example, GMRP and GVRP) timer values.
Examples
This example shows how to set the join timer value to 100 ms for all the ports on all the VLANs:
Console> (enable) set garp timer join 100
GMRP/GARP Join timer value is set to 100 milliseconds.
This example shows how to set the leave timer value to 300 ms for all the ports on all the VLANs:
Console> (enable) set garp timer leave 300
GMRP/GARP Leave timer value is set to 300 milliseconds.
This example shows how to set the leaveall timer value to 20000 ms for all the ports on all the VLANs:
Console> (enable) set garp timer leaveall 20000
GMRP/GARP LeaveAll timer value is set to 20000 milliseconds.
set gmrp timer
set gvrp timer
show gmrp timer
set gmrp
Use the set gmrp command to enable or disable GMRP on the switch in all VLANs on all ports.
set gmrp {enable | disable}
Syntax Description
enable
|
Keyword to enable GMRP on the switch.
|
disable
|
Keyword to disable GMRP on the switch.
|
Defaults
The default is GMRP is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You cannot enable GMRP if IGMP snooping is already enabled.
Examples
This example shows how to enable GMRP on the switch:
Console> (enable) set gmrp enable
This example shows how to disable GMRP on the switch:
Console> (enable) set gmrp disable
This example shows the display if you try to enable GMRP on the switch with IGMP enabled:
Console> (enable) set gmrp enable
Disable IGMP to enable GMRP snooping feature.
Related Commands
show gmrp configuration
set gmrp fwdall
Use the set gmrp fwdall command to enable or disable the Forward All feature on a specified port or module and port list.
set gmrp fwdall {enable | disable} mod/port...
Syntax Description
enable
|
Keyword to enable GMRP Forward All on a specified port.
|
disable
|
Keyword to disable GMRP Forward All on a specified port.
|
mod/port...
|
Number of the module and the ports on the module.
|
Defaults
The default is the Forward All feature is disabled for all ports.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
Forward All indicates that a port is interested in receiving all the traffic for all the multicast groups.
If the port is trunking, then this feature is applied to all the VLANs on that port.
Examples
This example shows how to enable GMRP Forward All on module 5, port 5:
Console> (enable) set gmrp fwdall enable 5/5
GMRP Forward All groups option enabled on port(s) 5/5.
This example shows how to disable the GMRP Forward All on module 3, port 2:
Console> (enable) set gmrp service fwdall disable 3/2
GMRP Forward All groups option disabled on port(s) 3/2.
Related Commands
show gmrp configuration
set gmrp registration
Use the set gmrp registration command to specify the GMRP registration type.
set gmrp registration {normal | fixed | forbidden} mod/port...
Syntax Description
normal
|
Keyword to specify dynamic GMRP multicast registration and deregistration on the port.
|
fixed
|
Keyword to specify the multicast groups currently registered on the switch are applied to the port, but any subsequent registrations or deregistrations do not affect the port. Any registered multicast groups on the port are not deregistered based on the GARP timers.
|
forbidden
|
Keyword to specify that all GMRP multicasts are deregistered and prevent any further GMRP multicast registration on the port.
|
mod/port...
|
Number of the module and the ports on the module.
|
Defaults
The default is administrative control is normal.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You must return the port to normal registration mode to deregister multicast groups on the port.
GMRP supports a total of 3072 multicast addresses for the whole switch.
Examples
This example shows how to set the registration type to fixed on module 3, port 3:
Console> (enable) set gmrp registration fixed 3/3
GMRP Registration is set to Fixed for port(s) 3/3.
This example shows how to set the registration type to forbidden on module 1, port 1:
Console> (enable) set gmrp registration forbidden 1/1
GMRP Registration is set to Forbidden for port(s) 1/1.
Related Commands
show gmrp configuration
set gmrp timer
Use the set gmrp timer command to adjust the values of the join, leave, and leaveall timers.
set gmrp timer {timer_type} {timer_value}
Syntax Description
timer_type
|
Type of timer; valid values are join, leave, and leaveall.
|
timer_value
|
Timer values in milliseconds; valid values are from 1 to 2147483647 milliseconds.
|
Defaults
The default is the join timer is 200 ms, the leave timer is 600 ms, and the leaveall timer is 10000 ms.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You must maintain the following relationship for the various timer values:
•
Leave time must be greater than or equal to three times the join time.
•
Leaveall time must be greater than the leave time.
Caution 
Set the same GARP application (for example, GMRP and GVRP) timer values on all Layer 2-connected devices. If the GARP timers are set differently on the Layer 2-connected devices, GARP applications will not operate successfully.
Note
The modified timer values are applied to all GARP application (for example, GMRP and GVRP) timer values.
Examples
This example shows how to set the join timer value to 100 ms for all the ports on all the VLANs:
Console> (enable) set gmrp timer join 100
GARP Join timer value is set to 100 milliseconds.
This example shows how to set the leave timer value to 300 ms for all the ports on all the VLANs:
Console> (enable) set gmrp timer leave 300
GARP Leave timer value is set to 300 milliseconds.
This example shows how to set the leaveall timer value to 20000 ms for all the ports on all the VLANs:
Console> (enable) set gmrp timer leaveall 20000
GARP LeaveAll timer value is set to 20000 milliseconds.
Related Commands
show gmrp timer
set gvrp timer
set garp timer
set gvrp
Use the set gvrp command to enable or disable GVRP globally in the switch or on a per-port basis.
set gvrp {enable | disable} [mod/port]
Syntax Description
enable
|
Keyword to enable GVRP on the switch.
|
disable
|
Keyword to disable GVRP on the switch.
|
mod/port
|
(Optional) Number of the module and port on the module.
|
Defaults
The default is GVRP is globally set to disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When you enable VTP pruning, VTP pruning runs on all the GVRP-disabled trunks.
To run GVRP on a trunk, you need to enable GVRP both globally on the switch and individually on the trunk.
Examples
This example shows how to enable GVRP globally on the switch:
Console> (enable) set gvrp enable
This example shows how to disable GVRP:
Console> (enable) set gvrp disable
This example shows how to enable GVRP on module 2, port 1:
Console> (enable) set gvrp enable 2/1
GVRP enabled on port 2/1.
Related Commands
show gmrp timer
show gvrp configuration
set gvrp timer
set garp timer
set gvrp applicant
Use the set gvrp applicant command to specify whether or not a VLAN is declared out of blocking ports.
set gvrp applicant {normal | active} {mod/port...}
Syntax Description
normal
|
Keyword to disallow the declaration of any VLAN out of blocking ports.
|
active
|
Keyword to enforce the declaration of all active VLANs out of blocking ports.
|
mod/port..
|
Number of the module and the ports on the module.
|
Defaults
The default is GVRP applicant set to normal.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
To run GVRP on a trunk, you need to enable GVRP both globally on the switch and individually on the trunk.
On a port connected to a device that does not support the per-VLAN mode of STP, the port state may continuously cycle from blocking to listening to learning to learning, and back to blocking. To prevent this, you must enter the set gvrp applicant active mod/port... command on the port to send GVRP VLAN declarations when the port is in the STP blocking state.
Examples
This example shows how to enforce the declaration of all active VLANs out of specified blocking ports:
Console> (enable) set gvrp applicant active 4/2-3,4/9-10,4/12-24
Applicant was set to active on port(s) 4/2-3,4/9-10,4/12-24.
This example shows how to disallow the declaration of any VLAN out of specified blocking ports:
Console> (enable) set gvrp applicant normal 4/2-3,4/9-10,4/12-24
Applicant was set to normal on port(s) 4/2-3,4/9-10,4/12-24.
Related Commands
show gvrp configuration
set gvrp dynamic-vlan-creation
Use the set gvrp dynamic-vlan-creation command to enable or disable dynamic VLAN creation.
set gvrp dynamic-vlan-creation {enable | disable}
Syntax Description
enable
|
Keyword to enable dynamic VLAN creation.
|
disable
|
Keyword to disable dynamic VLAN creation.
|
Defaults
The default is dynamic VLAN creation is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can enable dynamic VLAN creation only when VTP is in transparent mode and no ISL trunks exist in the switch.
This feature is not allowed when there are 802.1q trunks that are not configured with GVRP.
Examples
This example shows how to enable dynamic VLAN creation:
Console> (enable) set gvrp dynamic-vlan-creation enable
Dynamic VLAN creation enabled.
This example shows what happens if you try to enable dynamic VLAN creation and VTP is not in transparent mode:
Console> (enable) set gvrp dynamic-vlan-creation enable
VTP has to be in TRANSPARENT mode to enable this feature.
This example shows how to disable dynamic VLAN creation:
Console> (enable) set gvrp dynamic-vlan-creation disable
Dynamic VLAN creation disabled.
Related Commands
set vtp
show gvrp configuration
set gvrp registration
Use the set gvrp registration command to set the administrative control of an outbound port and apply to all VLANs on the trunk. GVRP registration commands are entered on a per-port basis.
set gvrp registration {normal | fixed | forbidden} mod/port..
Syntax Description
normal
|
Keyword to allow dynamic registering and deregistering each VLAN (except VLAN 1) on the port.
|
fixed
|
Keyword to support manual VLAN creation and registration, prevent VLAN deregistration, and register all VLANs known to other ports.
|
forbidden
|
Keyword to specify that all the VLANs (except VLAN 1) are statically deregistered from the port.
|
mod/port..
|
Number of the module and the ports on the module.
|
Defaults
The default is administrative control is normal.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
When you set VLAN registration, you are telling the switch that the VLAN is interested in the user(s) connecting to this port and the VLAN's broadcast and multicast traffic is allowed to send to the port.
For static VLAN configuration, you should set the mod/port.. control to fixed or forbidden if the mod/port.. will not receive or process any GVRP message.
For each dynamically configured VLAN on a port, you should set the mod/port.. control to normal (default), except for VLAN 1; GVRP registration mode for VLAN 1 is always fixed and is not configurable. VLAN 1 is always carried by 802.1Q trunks on which GVRP is enabled.
When GVRP is running, you can create a VLAN through a GVRP trunk port only if you enter the set gvrp dynamic-vlan-creation enable and the set gvrp registration normal commands.
Examples
This example shows how to set the administrative control to normal on module 3, port 7:
Console> (enable) set gvrp registration normal 3/7
Registrar Administrative Control set to normal on port 3/7.
This example shows how to set the administrative control to fixed on module 5, port 10:
Console> (enable) set gvrp registration fixed 5/10
Registrar Administrative Control set to fixed on Port 5/10.
This example shows how to set the administrative control to forbidden on module 5, port 2:
Console> (enable) set gvrp registration forbidden 5/2
Registrar Administrative Control set to forbidden on port 5/2.
Related Commands
show gvrp configuration
set gvrp timer
Use the set gvrp timer command to adjust the values of the join, leave, and leaveall timers.
set gvrp timer {timer_type} {timer_value}
Syntax Description
timer_type
|
Type of timer; valid values are join, leave, and leaveall.
|
timer_value
|
TimTimer values in milliseconds; valid values are from 1 to 2147483647 milliseconds.
|
Defaults
The default is the join timer is 200 ms, the leave timer is 600 ms, and the leaveall timer is 10000 ms.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You must maintain the following relationship for the various timer values:
•
Leave time must be greater than or equal to three times the join time.
•
Leaveall time must be greater than the leave time.
Caution 
Set the same GARP application (for example, GMRP and GVRP) timer values on all Layer 2-connected devices. If the GARP timers are set differently on the Layer 2-connected devices, GARP applications will not operate successfully.
Note
The modified timer values are applied to all GARP application (for example, GMRP and GVRP) timer values.
Examples
This example shows how to set the join timer value to 100 ms for all the ports on all the VLANs:
Console> (enable) set gvrp timer join 100
GVRP/GARP Join timer value is set to 100 milliseconds.
This example shows how to set the leave timer value to 300 ms for all the ports on all the VLANs:
Console> (enable) set gvrp timer leave 300
GVRP/GARP Leave timer value is set to 300 milliseconds.
This example shows how to set the leaveall timer value to 20000 ms for all the ports on all the VLANs:
Console> (enable) set gvrp timer leaveall 20000
GVRP/GARP LeaveAll timer value is set to 20000 milliseconds.
Related Commands
set garp timer
show gvrp configuration
set igmp
Use the set igmp command to enable or disable IGMP snooping on the switch.
set igmp {enable | disable}
Syntax Description
enable
|
Keyword to enable IGMP snooping on the switch.
|
disable
|
Keyword to disable IGMP snooping on the switch.
|
Defaults
The default is IGMP snooping is enabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
IGMP must be disabled to run GMRP.
Examples
This example shows how to enable IGMP snooping on the switch:
Console> (enable) set igmp enable
IGMP Snooping is enabled.
This example shows how to disable IGMP snooping on the switch:
Console> (enable) set igmp disable
IGMP Snooping is disabled.
This example shows the display if you try to enable GMRP on the switch with IGMP enabled:
Console> (enable) set igmp enable
Disable GMRP to enable IGMP snooping feature.
Related Commands
clear igmp statistics
show igmp statistics
set rgmp
set igmp fastleave
Use the set igmp fastleave command to enable or disable IGMP fastleave processing.
set igmp fastleave {enable | disable}
Syntax Description
enable
|
Keyword to enable IGMP fastleave processing.
|
disable
|
Keyword to disable IGMP fastleave processing.
|
Defaults
The default is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This command shows how to enable IGMP fastleave processing:
Console> (enable) set igmp fastleave enable
IGMP fastleave set to enable.
Warning: Can cause disconnectivity if there are more than one host joining the same group
per access port.
This command shows how to disable IGMP fastleave processing:
Console> (enable) set igmp fastleave disable
IGMP fastleave set to disable.
Related Commands
clear igmp statistics
show igmp statistics
set igmp
set igmp mode
Use the set igmp mode command to set the IGMP snooping mode.
set igmp mode {igmp-only | igmp-cgmp | auto}
Syntax Description
igmp-only
|
Keyword to specify IGMP snooping only.
|
igmp-cgmp
|
Keyword to specify IGMP and CGMP modes.
|
auto
|
Keyword to override the dynamic switching of IGMP snooping modes.
|
Defaults
The default is auto.
Command Types
Switch.
Command Modes
Privileged.
Usage Guidelines
The switch dynamically chooses either IGMP-only or IGMP-CGMP mode, depending on the traffic present on the network. IGMP-only mode is used in networks with no CGMP devices. IGMP-CGMP mode is used in networks with both IGMP and CGMP devices. Auto mode overrides the dynamic switching of the modes.
Examples
This example shows how to set the IGMP mode to IGMP only:
Console> (enable) set igmp mode igmp-only
IGMP mode set to igmp-only
This example shows how to set the IGMP mode to auto:
Console> (enable) set igmp mode auto
Related Commands
show igmp mode
set inlinepower defaultallocation
Use the set inlinepower defaultallocation command to set the default power allocation for a port.
set inlinepower defaultallocation value
Syntax Description
value
|
Default power allocation; valid values are from 2000 to 12500 mW.
|
Defaults
The default is 7000 mW.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to set the default power allocation to 2000 mW:
Console> (enable) set inlinepower defaultallocation 2000
Default inline power allocation set to 9500 mWatt per applicable port.
Related Commands
show environment power
show port inlinepower
set interface
Use the set interface command set to configure the in-band and SLIP interfaces on the switch.
set interface {sc0 | sl0} {up | down}
set interface sc0 [vlan] [ip_addr[/netmask] [broadcast]]
set interface sl0 slip_addr dest_addr
set interface sc0 dchp {renew | release | requestnew}
Syntax Description
sc0
|
Keyword to specify the in-band interface.
|
sl0
|
Keyword to specify the SLIP interface.
|
up
|
Keyword to bring the interface into operation.
|
down
|
Keyword to bring the interface out of operation.
|
vlan
|
(Optional) Number of the VLAN to be assigned to the interface.
|
ip_addr
|
(Optional) IP address.
|
/netmask
|
(Optional) Subnet mask.
|
broadcast
|
(Optional) Broadcast address.
|
slip_addr
|
IP address of the console port.
|
dest_addr
|
IP address of the host to which the console port will be connected.
|
dhcp
|
Keyword to perform DHCP operations on the sc0 interface.
|
renew
|
Keyword to renew the lease on a DHCP-learned IP address.
|
release
|
Keyword to release a DHCP-learned IP address back to the DHCP IP address pool.
|
requestnew
|
Keyword used to request a new lease on a DHCP-learned IP address.
|
Defaults
The default configuration is the in-band interface (sc0) in VLAN 1 with the IP address, subnet mask, and broadcast address set to 0.0.0.0. The default configuration for the SLIP interface (sl0) is that the IP address and broadcast address are set to 0.0.0.0.0.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
Two configurable network interfaces are on a Catalyst 6000 family switch: in-band (sc0) and SLIP (sl0). Configuring the sc0 interface with an IP address and subnet mask allows you to access the switch CLI via Telnet from a remote host. You should assign the sc0 interface to an active VLAN configured on the switch (the default is VLAN 1). Make sure the IP address you assign is in the same subnet as other stations in that VLAN.
Configuring the sl0 interface with an IP address and destination address allows you to make a point-to-point connection to a host through the console port. Use the slip attach command to activate SLIP on the console port (you will not be able to access the CLI via a terminal connected to the console port until you use the slip detach command to deactivate SLIP on the console port).
When you specify the netmask, this indicates the number of bits allocated to subnetting in the hostid section of the given Class A, B, or C address. For example, if you enter an IP address for the sc0 interface as 172.22.20.7, the hostid bits for this Class B address is 16. Any number of bits in the hostid bits can be allocated to the subnet field. If you do not enter the netmask, the number of bits is assumed to be the natural netmask.
The set interface sc0 dchp command is valid only when the address is learned from the DHCP server and available in privileged mode only.
Examples
This example shows how to use set interface sc0 and set interface sl0 from the console port. It also shows how to bring down interface sc0 using a terminal connected to the console port:
Console> (enable) set interface sc0 192.20.11.44/255.255.255.0
Interface sc0 IP address and netmask set.
Console> (enable) set interface sl0 192.200.10.45 192.200.10.103
Interface sl0 SLIP and destination address set.
Console> (enable) set interface sc0 down.
Interface sc0 administratively down.
This example shows how to set the IP address for sc0 through a Telnet session. Note that the default netmask for that IP address class is used (for example, a Class C address uses 255.255.255.0, and a Class B uses 255.255.0.0):
Console> (enable) set interface sc0 192.200.11.40
This command may disconnect active telnet sessions.
Do you want to continue (y/n) [n]? y
Interface sc0 IP address set.
This example shows how to take the interface out of operation through a Telnet session:
Console> (enable) set interface sc0 down
This command will inactivate telnet sessions.
Do you want to continue (y/n) [n]? y
Interface sc0 administratively down.
This example shows how to assign the sc0 interface to a particular VLAN:
Console> (enable) set interface sc0 5
This example shows what happens when you assign the sc0 interface to a nonactive VLAN:
Console> (enable) set interface sc0 200
Vlan is not active, user needs to set vlan 200 active
This example shows how to release a DHCP-learned IP address back to the DHCP IP address pool:
Console> (enable) set interface sc0 dhcp release
Releasing IP address...Done
This example shows how to renew a lease on a DHCP-learned IP address:
Console> (enable) set interface sc0 dhcp renew
Renewing IP address...Done
This example shows how to request a new lease on a DHCP-learned IP address:
Console> (enable) set interface sc0 dhcp requestnew
Requesting new IP address...Done
Related Commands
show interface
slip
set ip alias
Use the set ip alias command to add aliases of IP addresses.
set ip alias name ip_addr
Syntax Description
name
|
Name of the alias being defined.
|
ip_addr
|
IP address of the alias being defined.
|
Defaults
The default configuration is one IP alias (0.0.0.0) configured as the default.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to define an IP alias of mercury for IP address 192.122.174.234:
Console> (enable) set ip alias mercury 192.122.174.234
Related Commands
clear ip alias
show ip alias
set ip dns
Use the set ip dns command to enable or disable DNS.
set ip dns {enable | disable}
Syntax Description
enable
|
Keyword to enable DNS.
|
disable
|
Keyword to disable DNS.
|
Defaults
The default is DNS is disabled.
Command Types
Switch command.
Command Modes
Privileged.
Examples
This example shows how to enable DNS:
Console> (enable) set ip dns enable
This example shows how to disable DNS:
Console> (enable) set ip dns disable
Related Commands
show ip dns
set ip dns domain
Use the set ip dns domain command to set the default DNS domain name.
set ip dns domain name
Syntax Description
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If you specify a domain name on the command line, the system attempts to resolve the host name as entered. If the system cannot resolve the host name as entered, it appends the default DNS domain name as defined with the set ip dns domain command. If you specify a domain name with a trailing dot, the program considers this an absolute domain name.
Examples
This example shows how to set the default DNS domain name:
Console> (enable) set ip dns domain yow.com
DNS domain name set to yow.com.
Related Commands
clear ip dns domain
show ip dns
set ip dns server
Use the set ip dns server command to set the IP address of a DNS server.
set ip dns server ip_addr [primary]
Syntax Description
ip_addr
|
IP address of the DNS server.
|
primary
|
(Optional) Keyword to configure a DNS server as the primary server.
|
Defaults
This command has no default setting.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
You can configure up to three DNS name servers as backup. You can also configure any DNS server as the primary server. The primary server is queried first. If the primary server fails, the backup servers are queried.
If DNS is disabled, you must use the IP address with all commands that require explicit IP addresses or manually define an alias for that address. The alias has priority over DNS.
Examples
These examples show how to set the IP address of a DNS server:
Console> (enable) set ip dns server 198.92.30.32
198.92.30.32 added to DNS server table as primary server.
Console> (enable) set ip dns server 171.69.2.132 primary
171.69.2.132 added to DNS server table as primary server.
Console> (enable) set ip dns server 171.69.2.143 primary
171.69.2.143 added to DNS server table as primary server.
This example shows what happens if you enter more than three DNS name servers as backup:
Console> (enable) set ip dns server 161.44.128.70
DNS server table is full. 161.44.128.70 not added to DNS server table.
Related Commands
clear ip dns server
show ip dns
set ip fragmentation
Use the set ip fragmentation command to enable or disable the fragmentation of IP packets bridged between FDDI and Ethernet networks. Note that FDDI and Ethernet networks have different MTUs.
set ip fragmentation {enable | disable}
Syntax Description
enable
|
Keyword to permit fragmentation for IP packets bridged between FDDI and Ethernet networks.
|
disable
|
Keyword to disable fragmentation for IP packets bridged between FDDI and Ethernet networks.
|
Defaults
The default value is IP fragmentation enabled.
Command Types
Switch command.
Command Modes
Privileged.
Usage Guidelines
If IP fragmentation is disabled, packets are dropped.
Examples
This example shows how to disable IP fragmentation:
Console> (enable) set ip fragmentation disable
Bridge IP fragmentation disabled.
Related Commands
<