2-289
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set interface
set interface
To configure the in-band and Serial Line Internet Protocol (SLIP) interfaces on the switch, use the set
interface command.
set interface {sc0 | sl0 | sc1} {up | down}
set interface sl0 slip_addr dest_addr
set interface sc0 [vlan] [ip_addr[netmask [broadcast]]]
set interface sc0 [vlan] [ip_addr/netmask [broadcast]]
set interface sc0 dhcp {renew | release}
set interface sc1 [vlan] [ip_addr[netmask [broadcast]]]
set interface sc1 [vlan] [ip_addr/netmask [broadcast]]
Syntax Description
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.
sc0 Specifies the sc0 in-band interface.
sl0 Specifies the SLIP interface.
sc1 Specifies the sc1 in-band interface.
up Brings the interface into operation.
down Brings the interface out of operation.
slip_addr IP address of the console port.
dest_addr IP address of the host to which the console port will be connected.
vlan (Optional) Number of the VLAN to be assigned to the interface; valid values are
from 1 to 1005 and from 1025 to 4094.
ip_addr (Optional) IP address.
/netmask (Optional) Subnet mask.
broadcast (Optional) Broadcast address.
dhcp Performs Dynamic Host Configuration Protocol (DHCP) operations on the sc0
interface.
renew Renews the lease on a DHCP-learned IP address.
release Releases a DHCP-learne d IP address ba ck to the DHC P IP address po ol.