3-7
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 3 Configuring the Switch IP Address and Default Gateway
Assigning the In-Band (sc0 and sc1) Interface IP Address
Assigning the In-Band (sc0 and sc1) Interface IP Address
Before you can use Telnet to access the switch or use SNMP to manage the switch, you must assign an
IP address to one of the in-band (sc0 or sc1) logical interfaces.
Tip
Use the
set interface
{
sc0
|
sc1
}
0.0.0.0
command to set (
clear)
the sc1 or sc0 interfaces back to their
default address of 0.0.0.0.
Tip
If you configure two inband interfaces, sc0 and sc1, the switch is directly accessible from two different
VLANs at the same time.
You can specify the subnet mask (
netmask
) using the number of subnet bits or using the subnet mask in
dotted decimal format.
To set the IP address and VLAN membership of the in-band (sc0 or sc1) management interface, perform
this task in privileged mode (in this example, the sc0 interface is configured):
This example shows how to assign an IP address, specify the number of subnet bits, and specify the
VLAN assignment for the in-band sc0 interface:
Console> (enable)
set interface sc0 172.20.52.124/29
Interface sc0 IP address and netmask set.
Console> (enable)
set interface sc0 5
Interface sc0 vlan set.
Console> (enable)
This example shows how to specify the VLAN assignment, assign an IP address, specify the subnet mask
in dotted decimal format, and verify the configuration. In this example, the sc0 interface is configured (the
sc1 and sl0 interfaces have not been configured):
Console> (enable)
set interface sc0 5 172.20.52.124/255.255.255.248
Interface sc0 vlan set, IP address and netmask set.
Console> (enable)
show interface
sl0: flags=51<UP,POINTOPOINT,RUNNING>
slip 0.0.0.0 dest 0.0.0.0
sc0: flags=63<UP,BROADCAST,RUNNING>
vlan 5 inet 172.20.52.124 netmask 255.255.255.248 broadcast 172.20.52.17
sc1: flags=62<DOWN,BROADCAST,RUNNING>
Task
Command
Step 1
Assign an IP address, subnet mask (or number of
subnet bits), and (optional) broadcast address to
an in-band (sc0 or sc1) interface.
set interface
{
sc0
|
sc1
}
[
ip_addr
[
netmask
[
broadcast
]]]
or
set interface
{
sc0
|
sc1
} [
ip_addr
/
netmask
[
broadcast
]]
Step 2
Assign the in-band interface to the proper VLAN
(make sure that the VLAN is associated with the
network to which the IP address belongs).
set interface
{
sc0
|
sc1
} [
vlan
]
Step 3
If necessary, bring the interface up.
set interface
{
sc0
|
sc1
}
up
Step 4
Verify the interface configuration.
show interface