22-6
Catalyst 3550 Multilayer Switch Software Configuration Guide
78-11194-03
Chapter22 Configuring IP Unicast Routing
Configuring IP Addressing
Beginning in privileged EXEC mode, follow these steps to assign an IP address and a network mask to
a Layer 3 interface:
Use the no ip address interface configuration command to remove an IP address or to disable IP
processing.
This example shows how to configure an IP address on Gigabit E ther net int erfa ce 0/10 :
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gigabitethernet0/10
Switch(config-if)# no switchport
Switch(config-if)# ip address 10.1.2.3 255.255.0.0
Switch(config-if)# no shutdown
Switch(config-if)# end
Switch#
This is an example of output from the show interfaces privileged EXEC command for Gigabit Ethernet
interface0/10, displaying the interface IP address configuration and status:
Switch# show interfaces gigabitethernet0/10
GigabitEthernet0/10 is up, line protocol is down
Hardware is Gigabit Ethernet, address is 0002.4b29.7100 (bia 0002.4b29.7100)
Internet address is 10.1.2.3/16
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Auto-duplex, Auto-speed
input flow-control is off, output flow-control is off
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:42, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode, and specify the Layer 3
interface to configure.
Step3 no switchport Remove the interface from Layer 2 configuration mode (if it is a
physical interface).
Step4 ip address ip-address subnet-mask Configure the IP address and IP subnet mask.
Step5 no shutdown Enable the int erfa ce.
Step6 end Return to privileged EXEC mode.
Step7 show interfaces [interface-id]
show ip interface [interface-id]
show running-config interface [interface-id]
Verify your entries.
Step8 copy running-config startup-config (Optional) Save your entries in the configuration file.