路由模块配置和概述为Catalyst 4000家族( 三 )


interface port-channel 1.10
 encapsulation dot1q 10
 ip address 192.168.100.1 255.255.255.0
 ip access-group 99 out

示例配 置
我们的设置下列(请 参阅图表) 。我们有:
轰隆:一台Catalyst 4000 用路由模块在 插槽3
Liki: 在吉比特附有的路由器1在路由模块
Donald:在VLAN 2附有 的路由器在端口3/3 (一个路由模块的第二层端口) 轰隆
Daniella: 在VLAN附有的路由器3在端口轰隆2/3
我们创建一个吉比特以太网信道在路由模块和 Catalyst 4000之间 。我们在此吉比特以太网信道也将配置 Trunking 。吉比特以太网信道配置相当标准 。所有命 令特定到此设置将搬入端口信道子接口 。
这是配置和一 些show命令的输出 在 Catalyst 4000的Supervisor答应路由的和路由模块在三个子网 (VLAN 1,VLAN 2和路由器之间附有吉比特1) 。
交换Supervisor配置
路由器交换卡在 show module显示34个端口:32个交换端口对前面板和2个千 兆交换端口直接地连接到二路由器端口:
bang> (enable) sh mod
Mod Slot Ports Module-TypeModelSub Status 
--- ---- ----- ------------------------- ------------------- --- -------- 
110 Switching Supervisor WS-X4012 no ok 
223410/100/1000 Ethernet WS-X4232 no ok 
33 Router Switch CardWS-X4232-L3 no ok
Mod Module-Name Serial-Num 
--- ------------------- -------------------- 
1JAB02380AYG 
2JAB03210B6Y 
3JAB0417055S 
Mod MAC-Address(es) Hw Fw Sw 
--- -------------------------------------- ------ ---------- ----------------- 
100-50-73-2a-f3-00 to 00-50-73-2a-f6-ff 1.0 4.5(1) 5.5(1) 
200-50-73-42-a9-68 to 00-50-73-42-a9-89 1.6 
300-01-42-06-73-a8 to 00-01-42-06-73-c9 1.0 12.0(7)W5( 12.0(7)W5(14.90
唯一的配置在Catalyst 4000边添加了与吉比特以太 网信道Trunk有关到路由模块:
bang> (enable) sh conf
# ***** NON-DEFAULT CONFIGURATION ***** 
! 
!
! 
! 
! 
set port channel all distribution mac both 
! 
#ip 
set interface sl0 down 
set interface me1 down 
! 
#set boot command 
set boot config-register 0x102 
set boot system flash bootflash:cat4000.5-5-1.bin 
! 
#port channel 
set port channel 3/1-2 156 
! 
#module 1 : 0-port Switching Supervisor 
! 
#module 2 : 34-port 10/100/1000 Ethernet 
! 
#module 3 : 34-port Router Switch Card 
set vlan 23/3 
set vlan 32/3
set trunk 3/1 nonegotiate dot1q 1-1005
!--- NOTE : Trunk mode needs to be nonegociate as the router module
 does not support DTP. 
set trunk 3/2 nonegotiate dot1q 1-1005 
set port channel 3/1-2 mode on
!--- NOTE : Channel mode needs to be force to ON as the router module
 does not support PagP.
 
end
在 交换机,命令show cdp neighbor 显示路由模块好象它通过一条千兆 以太网通道Trunk连接的一个外部路由器在千兆端口3/1和3/2:
bang> (enable) sh cdp nei
* - indicates vlan mismatch. 
# - indicates duplex mismatch. 
Port Device-IDPort-IDPlatform 
-------- ------------------------------- ------------------------- ------------ 
 2/3 daniella Ethernet0 cisco 2500 
 3/3 donaldEthernet0 cisco 2500
bang> (enable) sh trunk
* - indicates vtp domain mismatch 
Port Mode Encapsulation StatusNative vlan 
-------- ----------- ------------- ----------------------- 
 3/1 nonegotiate dot1qtrunking 1 
 3/2 nonegotiate dot1qtrunking 1
Port Vlans allowed on trunk 
-------- --------------------------------------------------------------------- 

推荐阅读