12-3
Catalyst 6500 Series Switch Cisco IOS Software Configuration Guide—Release 12.1 E
78-14099-04
Chapter 12 Configuring Layer 3 Interfaces
Configuring IP Routing and Addresses
The Multilayer Switch Feature Card 2 (MSFC2) provides processing in software for route-map
sequences that use the match length and set interface keywords.
To configure PBR, refer to the Cisco IOS Quality of Service Solutions Configuration Guide, Release
12.1, “Classification,” “Configuring Policy-Based Routing,” at this URL:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios121/121cgcr/qos_c/qcprt1/qcdpbr.htm
To configure IP routing and an IP address on a Layer 3 interface, perform this task:
This example shows how to enable IP Routing Information Protocol (RIP) routing:
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# ip routing
Router(config)# router rip
Router(config-router)# network 10.0.0.0
Router(config-router)# end
Router#
This example shows how to configure an IP address on Fast Ethernet port 5/4:
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# interface fastethernet 5/4
Router(config-if)# ip address 172.20.52.106 255.255.255.248
Router(config-if)# no shutdown
Router(config-if)# end
Router#
This example uses the show interfaces command to display the interface IP address configuration and
status of Fast Ethernet port 5/4:
Command Purpose
Step 1 Router(config)# ip routing Enables IP routing. (Required only if IP routing is
disabled.)
Step 2 Router(config)# router ip_routing_protocol Specifies an IP routing protocol.
Step 3 Router(config-router)# ip_routing_protocol_commands Configures the IP routing protocol.
Step 4 Router(config-router)# exit Exists IP routing protocol configuration mode.
Step 5 Router(config)# interface {vlan vlan_ID} |
{type1 slot/port} | {port-channel
port_channel_number}
1. type = ethernet, fastethernet, gigabitethernet, tengigabitethernet, or ge-wan
Selects an interface to configure.
Step 6 Router(config-if)# ip address ip_address subnet_mask Configures the IP address and IP subnet.
Step 7 Router(config-if)# no shutdown Enables the interface.
Step 8 Router(config-if)# end Exits configuration mode.
Step 9 Router# show interfaces [{vlan vlan_ID} |
{type1 slot/port} | {port-channel
port_channel_number}]
Router# show ip interfaces [{vlan vlan_ID} |
{type1 slot/port} | {port-channel
port_channel_number}]
Router# show running-config interfaces [{vlan
vlan_ID} | {type1 slot/port} | {port-channel
port_channel_number}]
Verifies the configuration.