5.配置VLAN: Console> (enable) set vlan vlan_num [name name] Console> (enable) show vlan vlan_num Console> (enable) set vlan vlan_num mod_num/port_num Console> (enable) show vlan vlan_num Console> (enable) show port [mod_num/port_num]
6. 配置 VLAN Trunks on Fast Ethernet and Gigabit Ethernet Ports: VLAN Trunk 用于交換機間的互連,你可以在Fast Ethernet和Gigabit Ethernet Port或在 Fast or Gigabit EtherChannel bundle上設置Trunk,作為tr unk的端口用DTP(Dynamic Trunking Protocol)協議(也可以不用)來協商。
VLAN Trunk有五種模式和兩種種封裝: 五種模式為:on , off , desirable , auto , nonegotiate 兩種封裝為:ISL,802.1Q 另外,當Trunk 配置后,所有VLAN都被加入到此Trunk中,你可以增加或刪除Trunk中的VALN,但是你不能刪除缺省VLAN(即VLAN1)。 配置如下: Console> (enable) set trunk mod_num/port_num {on desirable auto} {isl dot1q negotiate } Console> (enable) show trunk
MLS由三部分組成: Multilayer Switching-Switching Engine (MLS-SE):Catalyst 5000 series switch with the NFFC or NFFC II。 Multilayer Switching-Route Processor (MLS-RP):The MLS-RP provides Cisco IOS-based multiprotocol routing, network services, and central configuration and control for the switches。 Multilayer Switching Protocol (MLSP)---The protocol running between the MLS- SE and MLS-RP to enable MLS。
1) 路由器配置。 Router(config)#mls rp ip Router(config-if)#mls rp vtp-domain [domain_name] Router(config-if)#mls rp vlan-id [vlan_id_num] Router(config-if)#mls rp ip Router(config-if)#mls rp management-interface 2) 交換機配置。 Console> (enable) set mls enable Console> (enable) set mls include ip_address Console> (enable)set mls flow {destination destination-source full}
MLS軟硬件要求: 多層交換技術要求下面的軟件和硬件版本: l Catalyst 5000 系列超級用戶引擎軟件4.1(1)或者更新的版本。
軟硬件的要求: Supervisor engine software---Software release 4.1(1) or later Cisco IOS router software---IOS release 11.3(2)WA4(4) or later Catalyst 2926G series switch or a Catalyst 5000 series switch with Supervisor Engine III, III FSX, or III FLX modulewith a NetFlow Feature Card (NFFC) or NFFC II Route Switch Module (RSM) or Cisco 7500, 7200, 4500, or 4700 series router RMON data collector (sUCh as the Catalyst 5000 series Network Analysis Module)
NDE 配置: 1. 指定NDE地址: 在收集MLS統計信息時,應先指定MLS-RP和MLS-SE使用的NDE IP地址。 Router(config)#mls rp nde-address [ip_addr] 指定地址后,還須在交換機上用set mls include [ip_addr]命令將MLS-RP的IP地址包含進去。 2. 指定NDE收集器: 在第一次激活NDE時,你需要指定一個NDE收集器和UDP端口號,它們被保留在NVRAM中。假如Network Analysis Module (WS-X5380)被安裝則無需指定它們。 Console> (enable) set mls nde [collector_ip] [udp_port_number] 3. 激活NDE: Console> (enable)set mls nde enable 4. 指定過濾器: Console> (enable)set mls nde flow destination [ip_addr_spec] Console> (enable) set mls nde flow destination [ip_addr_spec] source [ip_addr_spec] Console> (enable)set mls nde flow dst_prt [port_number] Console> (enable)set mls nde flow source [ip_addr_spec] dst_prt [port_number] Console> (enable)set mls nde flow protocol protocol
四5505配置速查: 1. 基本配置: 1)進入特權模式。 Console> enable Enter password:****** Console> (enable) 2)給交換機分配IP地址。 Console> (enable)set interface sc0 ip_addr netmask Console> (enable) set interface sc0 vlan_num 把交換機sc0接口分配給VLAN,默認給VALN1。 Console> (enable) set ip route default gateway Console> (enable) show interface Console> (enable) show ip route 查看配置。 3)以太網端口配置。 Console> (enable)set port speed mod_num/port_num {10 100 auto} Console> (enable) set port duplex mod_num/port_num {full half auto} Console> (enable) set port enable mod_num/port_num Console> (enable) set port name mod_num/port_num name_string Console> (enable) show port mod_num/port_num 4)系統設置 Console> (enable) set system name name_string Console> (enable) set time mm/dd/yy hh:mm:ss Console> (enable) set prompt prompt_string Console> (enable) set password Console> (enable) set enablepass 2. VLAN配置 1)VTP配置。
Console> (enable) set vtp domain name Console> (enable) set vtp mode [serverClientTransparent] Console> (enable) show vtp domain 2)設置VLAN Console> (enable) set vlan vlan_num [name name] Console> (enable) show vlan vlan_num Console> (enable) set vlan vlan_num mod_num/port_num Console> (enable) show vlan vlan_num Console> (enable) show port [mod_num/port_num] 3)設置VLAN TRUNK Console> (enable) set trunk mod_num/port_num {on desirable auto} {isl dot1q negotiate } Console> (enable) show trunk 4)設置EtherChannel
4 .MLS配置。 3) 路由器配置。 Router(config)#mls rp ip Router(config-if)#mls rp vtp-domain [domain_name] Router(config-if)#mls rp vlan-id [vlan_id_num] Router(config-if)#mls rp ip Router(config-if)#mls rp management-interface 4) 交換機配置。 Console> (enable) set mls enable Console> (enable) set mls include ip_address Console> (enable)set mls flow {destination destination-source full}