1、对接入层设备进行端口带宽限制(流入、流出),全网采用starview进行网络管理。【实验拓扑】 【实验设备】 出口设备:RG-WALL 100(或1000) 1台;核心设备:S68系列(或S65/S35系列设备)3台,配置千兆光纤接口7块; 接入设备:S2126G二层交换机3台;千兆光纤/模块 1块; 实验PC:9台;【实验步骤】 实验配置分为:(以下配置默认在全局配置模式下进行 )。第一步:网络设备的基本配置;第二步:ospf配置及其测试;第一步 基本配置(1) S2150G-A1基本配置hostname S2150G-A /交换机更名为S2150G-Avlan 1!vlan 30 /创建V
2、LAN30vlan 40 /创建VLAN40interface range fastEthernet 0/1-10 /配置1-10号端口 switchport access vlan 30 /将其加入VLAN30 interface range fastEthernet 0/11-20 /配置11-20号端口 switchport access vlan 40 /将其加入VLAN40 interface fastEthernet 0/48 switchport mode trunk /将48号端口配置为TRUNK模式S2150G-B 与S2150G-C 的配置基本相同,在此略过(2) S681
3、0E-A基本配置hostname S6810E-A /交换机更名为S6810E-Ainterface GigabitEthernet 3/8switchport mode trunk /配置为TRUNK模式interface GigabitEthernet 3/11 switchport access vlan 200 /将11号端口加入VLAN200interface GigabitEthernet 3/12 switchport access vlan 300 /将12号端口加入VLAN300interface Vlan 30 ip address 172.20.30.1 255.255.
4、255.0 /设置VLAN30 的IP地址interface Vlan 40 ip address 172.20.40.1 255.255.255.0 /设置VLAN40 的IP地址interface Vlan 200 ip address 192.168.129.45 255.255.255.248 /设置VLAN200的IP地址interface Vlan 300 ip address 192.168.130.45 255.255.255.248 /设置VLAN300的IP地址第二步 OSPF路由配置(1)S6810E-A OSPF路由配置router ospf /启动OSPF路由协议ar
5、ea 0.0.0.0 /区域0network 172.20.0.0 255.255.0.0 area 0.0.0.0 /公布本交换机的路由信息network 192.168.0.0 255.255.0.0 area 0.0.0.0(2)S6810E-B OSPF路由配置area 0.0.0.0 /区域0 network 172.16.0.0 255.255.0.0 area 0.0.0.0 /公布本交换机的路由信息(3)S6806E-C OSPF路由配置network 172.18.0.0 255.255.0.0 area 0.0.0.0 /公布本交换机的路由信息(4)验证OSPF路由S681
6、0E-A#sh ip routeType: C - connected, S - static, R - RIP, B - BGP, P - policy 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 2Type Destination IP Next hop Interface Distance Metric Status- - - - - - -O
7、172.16.10.0/24 192.168.129.44 VL200 110 2 ActiveO 172.16.20.0/24 192.168.129.44 VL200 110 2 ActiveO 172.18.50.0/24 192.168.130.44 VL300 110 2 ActiveO 172.18.60.0/24 192.168.130.44 VL300 110 2 ActiveC 172.20.30.0/24 0.0.0.0 VL30 0 0 ActiveC 172.20.40.0/24 0.0.0.0 VL40 0 0 ActiveO 192.168.128.40/29 19
8、2.168.129.44 VL200 110 2 ActiveC 192.168.129.40/29 0.0.0.0 VL200 0 0 ActiveC 192.168.130.40/29 0.0.0.0 VL300 0 0 Active/可以看出S6810E-A中除了直连路由,其他路由信息均是通过OSPF协议学到的S6810E-A#sh ip ospf nei Neighbor ID Pri State DeadTime Address Interface- - - - - -192.168.129.44 1 full/BDR 00:00:39 192.168.129.44 VL200 19
9、2.168.130.44 1 full/DR 00:39 192.168.130.44 VL300 / 同理,下面显示得是S6810E-B交换机的路由信息S6810E-B#sh ip routeC 172.16.10.0/24 0.0.0.0 VL10 0 0 ActiveC 172.16.20.0/24 0.0.0.0 VL20 0 0 ActiveO 172.18.50.0/24 192.168.128.45 VL100 110 2 ActiveO 172.18.60.0/24 192.168.128.45 VL100 110 2 ActiveO 172.20.30.0/24 192.16
10、8.129.45 VL200 110 2 ActiveO 172.20.40.0/24 192.168.129.45 VL200 110 2 ActiveC 192.168.128.40/29 0.0.0.0 VL100 0 0 ActiveO 192.168.130.40/29 192.168.128.45 VL100 110 2 ActiveS6810E-B#sh ip ospf neighbor 30 192.168.128.45 VL100 192.168.130.45 1 full/DR 00:30 192.168.129.45 VL200 /以下显示的是S6806E-C交换机的路由
11、信息S6806E-C#sh ip routeO 172.16.10.0/24 192.168.128.44 VL100 110 2 ActiveO 172.16.20.0/24 192.168.128.44 VL100 110 2 ActiveC 172.18.50.0/24 0.0.0.0 VL50 0 0 ActiveC 172.18.60.0/24 0.0.0.0 VL60 0 0 ActiveO 172.20.30.0/24 192.168.130.45 VL300 110 2 ActiveO 172.20.40.0/24 192.168.130.45 VL300 110 2 Acti
12、veO 192.168.129.40/29 192.168.128.44 VL100 110 2 ActiveS6806E-C#sh ip ospf neighbor 34 192.168.128.44 VL100 192.168.130.45 1 full/BDR 00:36 192.168.130.45 VL300 【问题与思考】1、理解OSPF路由协议2、理解路由表中的DR、BDR的区别【参考配置】(1)S6810E-A参考配置S6810E-A#sh runSystem software version : 2.41(2) Build Sep 19 2005 RelBuilding co
13、nfiguration.Current configuration : 787 bytesversion 1.0install 3 12sfp/gtip routing algorithm CRC32_UPPERhostname S6810E-Aenable secret level 1 5 #S(W&-/qX)sv1qY*T7+.tqZV/,|7enable secret level 15 5 #1X)svq.Y*T7+.qtZV/,|qS(W&-/switchport mode trunk switchport access vlan 200 switchport access vlan
14、300 ip address 172.20.30.1 255.255.255.0 ip address 172.20.40.1 255.255.255.0 ip address 192.168.129.45 255.255.255.248 ip address 192.168.130.45 255.255.255.248 router ospfarea 0.0.0.0network 172.20.0.0 255.255.0.0 area 0.0.0.0End(2)S6810E-B参考配置S6810E-B#sh run 808 byteshostname S6810E-B switchport
15、access vlan 100interface Vlan 1interface Vlan 10 ip address 172.16.10.1 255.255.255.0 interface Vlan 20 ip address 172.16.20.1 255.255.255.0 interface Vlan 100 ip address 192.168.128.44 255.255.255.248 ip address 192.168.129.44 255.255.255.248 network 172.16.0.0 255.255.0.0 area 0.0.0.0end(3)S6806E-
16、C参考配置S6806E-C#sh runinstall 1 12sfp/gthostname S6806E-Cenable secret level 1 5 #wNqZ1qIOrJ%(8qMpK*.tqxB/7enable secret level 15 5 #Q8cgkE,qmdhl&-qPaein.qbfjo+/interface GigabitEthernet 1/8interface GigabitEthernet 1/11interface GigabitEthernet 1/12interface Vlan 50 ip address 172.18.50.1 255.255.2
17、55.0 interface Vlan 60 ip address 172.18.60.1 255.255.255.0 ip address 192.168.128.45 255.255.255.248 ip address 192.168.130.44 255.255.255.248 network 172.18.0.0 255.255.0.0 area 0.0.0.0(4)S2150G-A参考配置S2150G-A#sh run 1447 byteshostname S2150G-Avlan 30vlan 40enable secret level 1 5 #E,1u_;Cq&-8U0Hen
18、able secret level 15 5 #/-aehq1dfimLqtbcknAq7zyglowinterface fastEthernet 0/1 switchport access vlan 30interface fastEthernet 0/2interface fastEthernet 0/3interface fastEthernet 0/4interface fastEthernet 0/5interface fastEthernet 0/6interface fastEthernet 0/7interface fastEthernet 0/8interface fastEthernet 0/9interface fastEthernet 0/10interface fastEthernet 0/11 switchport access vlan 40interface fastEthernet 0/12interface fastEthernet 0/13interface fastEthernet 0/14 switchport a
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1