1、华为交换机端口汇聚的配置交换机端口汇聚的配置一、实验目的 通过对交换机端口汇聚的配置,了解交换机端口的一些基本配置信息,并掌握相关的重要命令,利用交换机Console口命令对交换机进行配置,明白端口汇聚的作用。二、实验内容1、修改交换机主机名2、修改交换机端口地址与属性3、配置交换机端口的静态MAC 地址表4、实现交换机的端口汇聚三、网络实验图四、实验步骤(1)、按拓扑图连线 连线:按拓扑图将Switch1的E1/0/1与Switch2的E0/1相连,Switch1的E1/0/2与Switch2的E0/2相连,PC机COM口与Switch1的Console口相连,网线与E0/24相连。(2)、
2、设置Switch1的E1/0/1和E1/0/2端口sys System View: return to User View with Ctrl+Z. Quidwaysysname switch1 switch1interface ethernet 1/0/1 switch1-Ethernet0/1speed 100 switch1-Ethernet0/1duplex full switch1-Ethernet0/1int e1/0/2 switch1-Ethernet0/2speed 100 switch1-Ethernet0/2duplex full switch1-Ethernet0/2q
3、uit (3)、设置Switch2的E0/1和E0/2端口sys System View: return to User View with Ctrl+Z. Quidwaysysname switch2 switch2interface ethernet 0/1 switch2-Ethernet0/1speed 100 switch2-Ethernet0/1duplex full switch2-Ethernet0/1int e0/2 switch2-Ethernet0/2speed 100 switch2-Ethernet0/2duplex full switch2-Ethernet0/2q
4、uit (4)、汇聚交换机的E0/1和E0/2端口交换机Switch1上端口汇聚switch1-Ethernet1/0/2quit switch1link-aggregation group 1 mode static switch1interface e1/0/1 switch1-Ethernet1/0/1port link-aggregation group 1 switch1-Ethernet1/0/1interface e1/0/2 switch1-Ethernet1/0/2port link-aggregation group 1 交换机Switch2上端口汇聚switch2link
5、-aggregation e0/1 to e0/2 both(5)、配置交换机1的VLAN1地址switch1int vlan-interface 1 switch1-Vlan-interface1 %Apr 2 00:01:27:508 2000 switch1 L2INF/5/VLANIF LINK STATUS CHANGE:- 1 - Vlan-interface1: is UP switch1-Vlan-interface1ip address 192.168.1.1 255.255.255.0 switch1-Vlan-interface1 %Apr 2 00:01:41:967
6、2000 switch1 IFNET/5/UPDOWN:- 1 -Line protocol on the inter face Vlan-interface1 is UP switch1-Vlan-interface1quit switch1disp int vlan 1 Vlan-interface1 current state :UP Line protocol current state :UP IP Sending Frames Format is PKTFMT_ETHNT_2, Hardware address is 000f-e220-938b Internet Address
7、is 19 Description : HUAWEI, Quidway Series, Vlan-interface1 Interface The Maximum Transmit Unit is 1500 (6)、配置交换机2的VLAN1地址switch2interface vlan-interface 1 switch2-Vlan-interface1ip address 192.168.1.2 255.255.0 switch2-Vlan-interface1quit switch2disp interface vlan 1Vlan-interface1 current state :U
8、PDLine protocol current state :UP switch2-Ethernet1/0/2 IP Sending Frames Format is PKTFMT_ETHNT_2, Hardware address is 000f-e220-938bNGE:- 1 -8:01:04 2000 switch2 ARP/4/DUPIFIP:Duplicate address 192.168.1.2 on VLInternet Address is 192.168.1.2/24 Primary227634, ifAdminStatus is 1, ifOperStatuN1,Des
9、cription : HUAWEI, Quidway Series, Vlan-interface1 Interface-Vlan-interfas is 2 %Apr 1 23:57:54:1000 2000 switch2 The Maximum Transmit Unit is 1500(7)、测试汇聚结果switch1ping 192.168.1.2 PING 192.168.1.2: 56 data bytes, press CTRL_C to break Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=254 time=27 ms R
10、eply from 192.168.1.2: bytes=56 Sequence=2 ttl=254 time=7 ms Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=254 time=7 ms Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=254 time=20 ms Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=254 time=14 ms - 192.168.1.2 ping statistics - 5 packet(s) transmi
11、tted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 7/15/27 ms (8)、验证端口汇聚switch1display mac-address MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s) 000f-e21a-ec6f 1 Learned Ethernet1/0/1 AGING 0016-ec0b-d89b 1 Learned Ethernet1/0/1 AGING00e0-4c90-3da5 1 Learned Ethernet1/0/24 AGING
12、- 2 mac address(es) found - switch1int e1/0/1 switch1-Ethernet1/0/1shutdown switch1-Ethernet1/0/1 #Apr 2 00:07:49:321 2000 switch1 L2INF/2/PORT LINK STATUS CHANGE:- 1 - Trap 1.3.6.1.6.3.1.1.5.3: portIndex is 4227626, ifAdminStatus is 2, ifOperStatu s is 2 #Apr 2 00:07:49:514 2000 switch1 LAGG/2/AggP
13、ortInactive:- 1 -Trap 1.3.6.1.4.1.2 011.5.25.25.2.2: TrapIndex 31465473 Aggregation Group 1: port member Ethernet1/0 /1 is INACTIVE! #Apr 2 00:07:49:731 2000 switch1 LAGG/2/AggPortRecoverActive:- 1 -Trap 1.3.6.1. 4.1.2011.5.25.25.2.2: TrapIndex 31465474A t1/0/2 is now ACTIVE! %Apr 2 00:07:49:947 200
14、0 switch1 L2INF/5/PORT LINK STATUS CHANGE:- 1 - Ethernet1/0/1: is DOWN switch1-Ethernet1/0/1quitswitch1ping 192.168.1.2 PING 192.168.1.2: 56 data bytes, press CTRL_C to break Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=254 time=9 ms Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=254 time=13 ms
15、Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=254 time=19 ms Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=254 time=8 ms Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=254 time=10 ms - 192.168.1.2 ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/av
16、g/max = 8/11/19 msswitch1disp mac-addressMAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)000f-e21a-ec6f 1 Learned Ethernet1/0/2 AGING0016-ec0b-d89b 1 Learned Ethernet1/0/2 AGING00e0-4c90-3da5 1 Learned Ethernet1/0/24 AGING - 3 mac address(es) found -五、实验小结 由显示的MAC地址看出,此时MAC地址000f-e21a-ec6f、0016-ec0b-d89b都在E0/2端口所连接的网段上。由此可知,Switch1把发到目的节点000f-e21a-ec6f、0016-ec0b-d89b的数据帧通过E0/2这个备份端口转发,显示了端口汇聚的相互备份作用。
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1