Routing Interfaces
Fixed Switch Configuration Guide 20-3
Example
The following example shows how to enable RIP on the switch, then configure VLAN 1 with IP
address 192.168.63.1 255.255.255.0 as a routing interface and enable RIP on the interface.
C5(su)->router
C5(su)->router>enable
C5(su)->router#configure
Enter configuration commands:
C5(su)->router(Config)#router rip
C5(su)->router(Config-router)#exit
C5(su)->router(Config)#interface vlan 1
C5(su)->router(Config-if(Vlan 1))#ip address 192.168.63.1 255.255.255.0
C5(su)->router(Config-if(Vlan 1))#no shutdown
C5(su)->router(Config-if(Vlan 1))#ip rip enable
C5(su)->router(Config-if(Vlan 1))#exit
C5(su)->router(Config)#
Routing Interfaces
Routing interfaces are created using the interface command in router global configuration mode.
The interface command enables router interface configuration mode from global configuration
mode, and, if the interface has not previously been created, creates a new routing interface.
VLANs must be created from the switch CLI before they can be configured for IP routing. For
details on creating VLANs and configuring them for IP, refer to Chapter 9, Configuring VLANs.
Each VLAN interface must be configured for routing separately using the interface command. To
end configuration on one interface before configuring another, type exit at the command prompt.
Enabling interface configuration mode is required for completing interface-specific configuration
tasks.
A loopback interface is always expected to be up. This interface can provide the source address for
sent packets and can receive both local and remote packets. The loopback interface is typically
used by routing protocols, but it can also be used for management or network services such as
RADIUS, SNMP, Syslog, SNTP, or sFlow. By default, if RADIUS is configured with no host IP
address on the device, it will use the loopback interface 0 IP address (if it has been configured) as
its source for the NAS-IP attribute. (Administrators can assign where to source management or
network service IP packets via the set interface commands.)
Fixed switch platforms support different numbers of primary and secondary IP routing interfaces.
Refer to the Release Notes for your platform for the number of interfaces supported. Each
interface can be configured for the RIP (and/or OSPF, on platforms that support advanced routing
features) routing protocols.
By default, IP routing is enabled when interfaces are configured for it. Use the no ip routing
command at router global configuration mode to disable routing on the switch.
IPv4 Interface Addresses
A single primary IP address must be configured on each routing interface. Secondary IP addresses
can optionally be configured. The first network IP address assigned to an interface is the primary
address. To configure a secondary network IP address on an interface, the address must be
explicitly configured as secondary — otherwise, you will overwrite the current primary.
Use the ip address command in interface configuration command mode to assign IP networks as
primary or secondary to a routing interface.
Procedure 20-2 describes how to configure the routing interface.