
3-6
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
78-15908-01
Chapter 3 Configuring the Switch IP Address and Default Gateway
Setting the Management Ethernet (me1) Interface IP Address
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:
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
Console> (enable)
Setting the Management Ethernet (me1) Interface IP Address
Before you can Telnet to the switch or use 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. The me1
interface is present only on the Catalyst 4500 series, Catalyst 2948G, Catalyst 2948G-GE-TX, and
Catalyst 2980G switches.
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 management Ethernet (me1) interface IP address, perform this task in privileged mode:
This example shows how to assign an IP address and subnet mask to the management Ethernet (me1)
interface and how to verify the interface configuration:
Console> (enable) set interface me1 172.20.52.12/255.255.255.224
Interface me1 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 1 inet 0.0.0.0 netmask 0.0.0.0 broadcast 0.0.0.0
me1: flags=63<UP,BROADCAST,RUNNING>
inet 172.20.52.12 netmask 255.255.255.224 broadcast 172.20.52.31
Console> (enable)
Task
Command
Step 1
Assign an IP address and subnet mask to the management
Ethernet (me1) interface.
set interface me1 [ip_addr[/netmask]]
Step 2
If necessary, bring the interface up.
set interface me1 up
Step 3
Verify the interface configuration.
show interface