![Cisco 2948G - Catalyst Switch Configuration Manual Download Page 50](http://html.mh-extra.com/html/cisco/2948g-catalyst-switch/2948g-catalyst-switch_configuration-manual_67462050.webp)
3-6
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
—
Release 8.1
78-15486-01
Chapter 3 Configuring the Switch IP Address and Default Gateway
Setting the Management Ethernet (me1) Interface IP Address
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, 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)
Configuring Default Gateways
The supervisor engine sends IP packets that are destined for other IP subnets to the default gateway
(typically a router interface in the same network or subnet as the switch IP address). The switch does not
use the IP routing table to forward traffic from connected devices, only IP traffic generated by the switch
itself (for example, Telnet, TFTP, and ping).
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