S3500B(config-if)#channel-group 1 mode on S3500B(config-if)#int f0/3 S3500B(config-if)#no switchport S3500B(config-if)#no ip address
S3500B(config-if)#channel-group 1 mode on S3500B(config)#int port-channel 1 S3500B(config-if)#no switchport
S3500B(config-if)#ip add 10.1.2.2 255.255.255.0 配置rip
S3500B(config)#router rip S3500B(config-router)#version 2 S3500B(config)#router ospf 100
S3500B(config-router)#network 10.1.2.0 255.255.255.0 area 0
配置MSTP(优化功能)
S3500A(config)# spanning-tree mst configuration S3500A(config)#revision 5 S3500A(config)#name region 1
S3500A(config-mst)#instance 1 vlan 10 S3500A(config-mst)#instance 2 vlan 20 S3500A(config-mst)#exit
S3500A(config)#spanning-tree mst 1 root primary/priotity 0 //设置此交换机为instance1的生成树根
S3500A(config)#spanning-tree mst 2 root secondary/priotity 4096 //设置此交换机是instance2的生成树备份根 S2900配置
配vtp,TRUNK,vlan
S2900(config)#vtp mode client Setting device to VTP CLIENT mode. S2900(config)#vtp domain server
Changing VTP domain name from NULL to server S2900(config)#int f3/1
S2900(config-if)#switchport mode acce
11
S2900(config-if)#switchport mode access S2900(config-if)#switchport access vlan 10 S2900(config)#int f4/1
S2900(config-if)#switchport access vlan 20 S2900(config-if)#int f2/1
S2900(config-if)#switchport mode trunk S2900(config)#int f0/1
S2900(config-if)#switchport mode trunk
配置MSTP
S2900(config)# spanning-tree mst configuration S2900(config)#revision 5 S2900(config)#name region 1
S2900(config-mst)#instance 1 vlan 10 S2900(config-mst)#instance 2 vlan 20 S2900(config-mst)#exit 配置端口安全
S2900(config-if)#int f3/1
S2900(config-if)#switchport port-security maximum 2 S2900(config-if)#switchport port-security violation shut
2)在下列设备上执行相应的show命令,并将执行结果通过复制粘贴的方式保存到文本文件中。
在R1800上执行下列命令。 Show ip interface brief R1800#show ip interface brief Protocol
up
Interface IP-Address OK? Method Status
FastEthernet0/0 202.10.1.1 YES manual up
FastEthernet1/0 10.1.1.1 YES manual up
12
up
Serial2/0 unassigned YES unset administratively down down
Serial3/0 unassigned YES unset administratively down down
FastEthernet4/0 unassigned YES unset administratively down down
FastEthernet5/0 unassigned YES unset administratively down down
Show ip route S3500A#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route
Gateway of last resort is not set
13
10.0.0.0/24 is subnetted, 2 subnets
C 10.1.1.0 is directly connected, FastEthernet0/1 C 10.1.2.0 is directly connected, Port-channel 1 172.16.0.0/24 is subnetted, 2 subnets
C 172.16.1.0 is directly connected, FastEthernet0/5 C 172.16.2.0 is directly connected, FastEthernet0/4 C 192.168.10.0/24 is directly connected, Vlan10 C 192.168.20.0/24 is directly connected, Vlan20
R 202.10.1.0/24 [120/1] via 10.1.1.1, 00:00:17, FastEthernet0/1
Show access-list R1800#show access-lists Standard IP access list 1 permit 192.168.20.0 0.0.0.255 Show ip nat statistics
pool test: netmask 255.255.255.0 start 202.10.1.6 end 202.10.1.8
type generic, total addresses 3 , allocated 0 (0%), misses 0 在S3500A上执行下列命令。 Show spanning-tree S3500A#show spanning-tree VLAN0001
Spanning tree enabled protocol ieee Root ID Priority 32769
Address 0030.F2D5.6E82 This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
14
Address 0030.F2D5.6E82
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa0/3 Desg FWD 19 128.3 P2p
VLAN0010
Spanning tree enabled protocol ieee Root ID Priority 32778
Address 0030.F2D5.6E82 This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address 0030.F2D5.6E82
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa0/3 Desg FWD 19 128.3 P2p
VLAN0020
Spanning tree enabled protocol ieee Root ID Priority 32788
15
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库企业网络搭建及应用实例(3)在线全文阅读。
相关推荐: