Router# sh run Building configuration... Current configuration: ! version 12.0 service config no service pad service timestamps debug uptime service timestamps log uptime no service passWord-encryption ! hostname Router ! ! ip subnet-zero ! ! ! interface FastEthernet1 no ip address no ip directed-broadcast shutdown ! interface GigabitEthernet1 no ip address no ip directed-broadcast
注重: 在此配置 ,吉比特3和4是连接去与底板; 吉比特1和2是用户端口在前 面板(路由端口)。大多时间,和在MSM,您将配置端口3和4是 同一条接口端口信道的一部分并且您将配置子接口对此(被封装的 ISL或802.1q)。和在MSM,吉比特3 和4的配置在路由模块需 要是一致与端口的配置slot/1和slot/2在转换面。您能通过 输入命令sh int port-channel 或 sh int gigabit 然后检查路由器和 交换机的之间 数据流。
交换Supervisor配置 路由器交换卡在 show module显示34个端口:32个交换端口对前面板和2个千 兆交换端口直接地连接到二路由器端口: bang> (enable) sh mod Mod Slot Ports Module-Type Model Sub Status --- ---- ----- ------------------------- ------------------- --- -------- 1 1 0 Switching Supervisor WS-X4012 no ok 2 2 34 10/100/1000 Ethernet WS-X4232 no ok 3 3 Router Switch Card WS-X4232-L3 no ok Mod Module-Name Serial-Num --- ------------------- -------------------- 1 JAB02380AYG 2 JAB03210B6Y 3 JAB0417055S Mod MAC-Address(es) Hw Fw Sw --- -------------------------------------- ------ ---------- ----------------- 1 00-50-73-2a-f3-00 to 00-50-73-2a-f6-ff 1.0 4.5(1) 5.5(1) 2 00-50-73-42-a9-68 to 00-50-73-42-a9-89 1.6 3 00-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 2 3/3 set vlan 3 2/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-ID Port-ID Platform -------- ------------------------------- ------------------------- ------------ 2/3 daniella Ethernet0 cisco 2500 3/3 donald Ethernet0 cisco 2500 bang> (enable) sh trunk * - indicates vtp domain mismatch Port Mode Encapsulation Status Native vlan -------- ----------- ------------- ------------ ----------- 3/1 nonegotiate dot1q trunking 1 3/2 nonegotiate dot1q trunking 1 Port Vlans allowed on trunk -------- --------------------------------------------------------------------- 3/1 1-1005 3/2 1-1005 Port Vlans allowed and active in management domain -------- --------------------------------------------------------------------- 3/1 1-3 3/2 1-3 Port Vlans in spanning tree forwarding state and not PRuned -------- --------------------------------------------------------------------- 3/1 1-3 3/2 1-3 假如有show trunk命令的输出 从您的Cisco设备,您能使 用 Output Interpreter 显示潜在问题和修正。使用 Output Interpreter ,您必须是一个 注册的用户,登录,并且安排javascript 被启用。 bang> (enable) sh port channel Port Status Channel Admin Ch Mode Group Id ----- ---------- -------------------- ----- ----- 3/1 connected on 156 833 3/2 connected on 156 833 ----- ---------- -------------------- ----- ----- Port Device-ID Port-ID Platform ----- ------------------------------- ------------------------- ---------------- 3/1 bang-rp GigabitEthernet3 cisco Cat4232 3/2 Not directly connected to switch ----- ------------------------------- ------------------------- ---------------- 假如有show port channel命令的输 出 从您的Cisco设备,您能 使用 Output Interpreter 显示潜在问题和修正。使用 Output Interpreter ,您必须是一个 注册的用户,登录,并且安排Javascript 被启用。
路由模块 配置 bang-rp#sh ver Cisco Internetwork Operating System Software IOS (tm) L3 Switch/Router Software (CAT4232-IN-M), Version 12.0(7)W5(14.90) INTERIM TEST SOFTWARE Copyright (c) 1986-2000 by cisco Systems, Inc. Compiled Fri 26-May-00 15:26 by integ Image text-base: 0x60010928, data-base: 0x605C8000 ROM: System Bootstrap, Version 12.0(7)W5(15b) RELEASE SOFTWARE bang-rp uptime is 1 day, 22 hours, 7 minutes System restarted by power-on System image file is "bootflash:cat4232-in-mz.120-7.W5.14.90" cisco Cat4232 (R5000) processor with 57344K/8192K bytes of memory. R5000 processor, Implementation 35, Revision 2.1 Last reset from power-on 1 FastEthernet/IEEE 802.3 interface(s) 4 Gigabit Ethernet/IEEE 802.3z interface(s) 123K bytes of non-volatile configuration memory. 16384K bytes of Flash internal SIMM (Sector size 256K). Configuration register is 0x1 bang-rp# sh run Building configuration... Current Configuration: ! version 12.0 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname bang-rp ! ! ip subnet-zero ! ! ! interface Port-channel1 no ip redirects no ip directed-broadcast hold-queue 300 in ! interface Port-channel1.2
!--- This interface is configured for dot1q routing with native vlan 1 to !--- match supervisor configuration.
encapsulation dot1Q 1 native ip address 1.1.1.2 255.255.255.0 no ip redirects no ip directed-broadcast ! interface Port-channel1.3 encapsulation dot1Q 3 ip address 1.1.1.2 255.255.255.0 no ip redirects no ip directed-broadcast ! interface FastEthernet1
!--- This is the out of band interface that you can use for management.
no ip address no ip directed-broadcast shutdown ! interface GigabitEthernet1 ip address 3.3.3.2 255.255.255.0 no ip directed-broadcast ! interface GigabitEthernet2 no ip address no ip directed-broadcast shutdown ! interface GigabitEthernet3 no ip address no ip directed-broadcast no negotiation auto channel-group 1
!--- Both port gig 3 and gig 4 are part of the channel-group 1.
! interface GigabitEthernet4 no ip address no ip directed-broadcast no negotiation auto channel-group 1
!--- Both port gig 3 and gig 4 are part of the channel group 1.
! router eigrp 1 passive-interface FastEthernet1 network 1.0.0.0 network 2.0.0.0 network 3.0.0.0 ! ip classless ! arp 127.0.0.2 0050.732a.f300 ARPA ! line con 0 transport input none line aux 0 line vty 0 4 login ! end bang-rp#sh cdp nei Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater Device ID Local Intrfce Holdtme Capability Platform Port ID liki Gig 1 160 T S WS-C3508G-Gig 0/1
!--- Liki is connected to gig 1 on the router. We only see Liki from !--- the router, we do not see it from the supervisor.
JAB02380AYG(bang)Port-channel1 148 T S WS-C4003 3/2 JAB02380AYG(bang)Port-channel1 147 T S WS-C4003 3/1
结论和提示 要切记的一些要害点当在Catalyst 4000时配置路由 模式:
您在前面板看的千兆接口 不是 相同作为千兆接 口您看见当您发出 show port from Supervisor 时。这些是接口吉比特1和接口吉比特2在路由器。