58
Installation and Configuration Note for the Catalyst 4000 Layer 3 Services Module
78-10164-03
Configuring the Module for InterVLAN Routing
Step 5
Create an EtherChannel (portchannel) interface. The channel number can be from 1 to 64.
router(config)#
interface port-channel
channel_number
Step 6
Assign the g3 and g4 interfaces to the port channel:
router(config)#
interface g3
router(config-if)#
channel-group
channel_number
router(config-if)#
exit
router(config)#
Step 7
Repeat Step 6 on the remaining interface.
Step 8
Configure subinterfaces on the port channel interface, one for each
allowed
VLAN configured on the
Catalyst 4000 Layer 3 Services module trunk over which you want to route traffic. Specify the same
type of encapsulation as in Step 3.
router(config)#
interface port-channel
channel_number.vlan_id
router(config-subif)#
encapsulation dot1Q
vlan_id
router(config-subif)#
ip address
ip_address subnet_mask
router(config-subif)#
exit
Step 9
Repeat Step 8 to create and configure additional subinterfaces on the port channel.
Note
Be sure you assign the same native VLAN ID in Step 10 as you assigned in Step 2.
Step 10
Configure a subinterface for the native VLAN by specifying the
native
keyword with the
encapsulation
command:
router(config)#
interface port-channel
channel_number.vlan_id
router(config-subif)#
encapsulation dot1Q
vlan_id
native
router(config-subif)#
ip address
ip_address subnet_mask
router(config-subif)#
exit
Option 3: Configuring Interfaces as Independent Links
This procedure shows you how to configure the internal Gigabit Ethernet interfaces to route between
two VLANs. In this example, VLANs 4 and 5 are configured on a Catalyst 4000 family switch.
Trunking is not enabled on any interface because there is only one VLAN on each physical interface.
Perform the following steps to configure the interfaces independently (in this procedure the Catalyst
4000 Layer 3 Services module is in slot 2):
Step 1
Use the
set vlan
vlan_num mod_num/port_num
command to add the two Catalyst 4000 Layer 3
Services module interfaces to a VLAN:
Console> (enable)
set vlan 4 2/1
VLAN 4 modified.
VLAN 1 modified.
..
Console> (enable)
set vlan 5 2/2
VLAN 5 modified.
VLAN 1 modified.