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}