Cisco Catalyst 4500 Series Software Configuration Manual page 935

Cisco ios xe release 3.9.xe and cisco ios release 15.2(5)ex
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 35
Configuring Layer 3 Interfaces
To configure logical Layer 3 VLAN interfaces, perform this task:
Command
Step 1
Switch(config)# vlan vlan_ID
Step 2
Switch(config)# interface vlan vlan_ID
Step 3
Switch(config-if)# ip address ip_address subnet_mask
Step 4
Switch(config-if)# no shutdown
Step 5
Switch(config-if)# end
Step 6
Switch# copy running-config startup-config
Step 7
Switch# show interfaces [type slot/interface]
Switch# show ip interfaces [type slot/interface]
Switch# show running-config interfaces [type
slot/interface]
Switch# show running-config interfaces vlan vlan_ID
This example shows how to configure the logical Layer 3 VLAN interface VLAN 2 and assign an IP
address:
Switch> enable
Switch# config term
Enter configuration commands, one per line.
Switch(config)# vlan 2
Switch(config)# interface vlan 2
Switch(config-if)# ip address 10.1.1.1 255.255.255.248
Switch(config-if)# no shutdown
Switch(config-if)# end
This example shows how to use the show interfaces command to display the interface IP address
configuration and status of Layer 3 VLAN interface VLAN 2:
Switch# show interfaces vlan 2
Vlan2 is up, line protocol is down
Hardware is Ethernet SVI, address is 00D.588F.B604 (bia 00D.588F.B604)
Internet address is 172.20.52.106/29
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output never, 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
Switch#
This example shows how to use the show running-config command to display the interface IP address
configuration of Layer 3 VLAN interface VLAN 2:
Switch# show running-config
reliability 255/255, txload 1/255, rxload 1/255
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
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Configuring Logical Layer 3 VLAN Interfaces
Purpose
Creates the VLAN.
Selects an interface to configure.
Configures the IP address and IP subnet.
Enables the interface.
Exits configuration mode.
Saves your configuration changes to NVRAM.
Verifies the configuration.
End with CNTL/Z.
35-7

Advertisement

Table of Contents
loading

Table of Contents