Chapter 3
Configuring the Switch IP Address and Default Gateway
Default IP Address and Default Gateway Configuration
Table 3-2
Table 3-2
Feature
In-band (sc0) interface
Management Ethernet (me1) interface
Default gateway address
SLIP (sl0) interface
Setting the In-Band (sc0) Interface IP Address
Before you can Telnet to the switch or use Simple Network Management Protocol (SNMP) to manage
the switch, you must assign an IP address to either the in-band (sc0) logical interface or the management
Ethernet (me1) interface.
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) management interface, perform this
task in privileged mode:
Task
Step 1
Assign an IP address, subnet mask (or number of
subnet bits), and (optional) broadcast address to
the in-band (sc0) interface.
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).
Step 3
If necessary, bring the interface up.
Step 4
Verify the interface configuration.
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)
78-15486-01
shows the default IP address and default gateway configuration.
Switch IP Address and Default Gateway Default Configuration
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
Default IP Address and Default Gateway Configuration
Default Value
•
IP address, subnet mask, and broadcast address set to
0.0.0.0
Assigned to VLAN 1
•
IP address, subnet mask, and broadcast address set to
•
0.0.0.0
Set to 0.0.0.0 with a metric of 0
•
•
IP address and SLIP destination address set to 0.0.0.0
•
SLIP for the console port is not active (set to detach)
Command
set interface sc0 [ip_addr[/netmask] [broadcast]]
set interface sc0 [vlan]
set interface sc0 up
show interface
—
Release 8.1
3-5