1、设计实验报告3实验报告设计实验报告3实验报告 实验8 综合组网实验根据组网图,配置生成树协议和链路聚合。并写出相关命令:S1和S2:生成树协议:stp enable链路聚合:interface bridge-aggregation 1link-aggregation mode dynaminter e 1/0/1port link-aggregation group 1inter e 1/0/3port link-aggregation group 1inter bridge-aggregation 1port link-type trunkport trunk permit all因为本实验
2、组网图实际上如下所示:所示本实验只需要配置生成树协议:stp enable链路聚合:inter e 1/0/1port link-type trunkport trunk permit all(或者port trunk permit 3 4 5)请写出核心路由器和核心交换机中的指定路由器和备份指定路由器,并说明为什么?指定路由器是R1,指定的备份路由器是R2,配置命令如下:R1:ip route-stat inter e0/0ip addr 24rp id 11 virtual-ip rp id 11 priority 100ospfdefault-route-advertise cost 1
3、00R2:ip route-stat inter e0/0ip addr 24rp id 11 virtual-ip rp id 11 priority 80ospfdefault-route-advertise cost 20S1:ip route-stat preference 60ip route-stat preference 80ip route-stat preference 100原因说明:首先因为在S1上面配置了路由备份的三条默认路由,而第一条preference最低为60优先下一跳去往,路由表查找去往的下一跳是哪里,发现R1和R2的virtual-ip都是,因此选择prior
4、ity为100优先级更高的R1进行转发。所以R1是主路由器,R2是备份路由器。(实验过程中核心交换机S1和汇聚交换机S2的不单独配置前往外网的默认路由,只需要在出口路由器R1和R2上,将默认路由引入至OSPF,并通过OSPF传播给S1和S2)而当S1路由备份失效时候,即静态路由失效时,由于R1和R2都启用了OSPF协议,并且R1的cost值比较小,优先选择R1,当R1失效时候才会选择R2路由器,因此R1是主出口路由器,R2是备份路由器。写出访问控制列表的相关命令:PCA的ip地址:/24 网关:PCB的ip地址:/24 网关:R1:acl number 201 rule 0 permit so
5、urce 55rule 1 permit source 55rule 2 denyR2:acl number 201rule 0 deny source 55rule 1 permit source 55rule 2 deny 当R1路由器正常时,PCA和PCB能够正常访问互联网,并且网路中的路由器和交换机是无法ping到外网的。当关闭R1-S2-Inter这条路线的R1上端口e0/1时候,由于路由器R2的规则阻止,网段访问互联网,即PCA可以访问换联网,而PCB无法访问。将路由器R1的E1接口断掉,截获并分析p Trap报文,写出报文的字段名和字段值,然后重新连接,通过网络管理服务器查看路由
6、器状态。字段名字段长度字段表达信息enterprise10企业: SNMPv2-SMI:enterprise.25506.1.580agentaddr4代理的IP地址: genertrap1Trap类型: linkDown(2)speciftrap1特定代码: 0(不是代理自定义的事件)timest3时间戳: 1767714Variablebindings51变量绑定VarBind1Name10.1.1.13Value113VarBind2Name10.1.7.13Value11VarBind3Name10.1.8.13Value12字段名字段长度字段表达信息enterprise10企业: S
7、NMPv2-SMI:enterprise.25506.1.580agentaddr4代理的IP地址: genertrap1Trap类型: linkUp(3)speciftrap1特定代码: 0(不是代理自定义的事件)timest3时间戳: 1769651Variablebindings51变量绑定VarBind1Name10.1.1.13Value113VarBind2Name10.1.7.13Value11VarBind3Name10.1.8.13Value11每台设备上配置专用的网络管理地址有什么好处?答:因为网管软件需要按照ip地址添加设备,因此每台设备都配置专用网络管理地址可以方便的被
8、网络管理工具实时监控和管理。方便网络管理工具对设备进行故障管理,配置管理,计费管理,性能管理,安全管理。请附上全部网络设备的最终配置PS:假如主机ping不通 ,而主机能ping通R1的接口地址,R1能ping通删掉1的DHCP即可:inter 1undo ip addr dhcp-allocS1 S2都要undo不然会在网关卡主S1dis cur#version 5.20, Release 2108P01#sysname S1#irf mac-address persistent timerirf auto-update enableundo irf link-delay#domain de
9、fault enable system#ip ttl-epires enableip unreachables enable#undo ip enable#multast routing-enable#password-recovery enable#1#3# 5 # 30 # 100 # domain system access-limit disablestate active idle-cut disableself-serve-url disable# user-group systemgroup-attribute allow-guest# interface NULL0 # int
10、erface -interface1# interface -interface3# interface -interface5ip address pim dm # interface -interface100ip address pim dm # interface Ether1/0/1port link-mode bridgeport link-type trunkport trunk permit 1 3 to 5# interface Ether1/0/2port link-mode bridge# interface Ether1/0/3port link-mode bridge
11、# interface Ether1/0/4port link-mode bridge# interface Ether1/0/5port link-mode bridge# interface Ether1/0/6port link-mode bridge# interface Ether1/0/7port link-mode bridge# interface Ether1/0/8port link-mode bridge# interface Ether1/0/9port link-mode bridge# interface Ether1/0/10port link-mode brid
12、ge# interface Ether1/0/11port link-mode bridge# interface Ether1/0/12port link-mode bridge# interface Ether1/0/13port link-mode bridge# interface Ether1/0/14port link-mode bridge# interface Ether1/0/15port link-mode bridge# interface Ether1/0/16port link-mode bridge# interface Ether1/0/17port link-m
13、ode bridge# interface Ether1/0/18port link-mode bridge# interface Ether1/0/19port link-mode bridge# interface Ether1/0/20port link-mode bridge# interface Ether1/0/21port link-mode bridge# interface Ether1/0/22port link-mode bridge# interface Ether1/0/23port link-mode bridgeport access 100# interface
14、 Ether1/0/24port link-mode bridgeport access 100# interface gabitEther1/0/25port link-mode bridge# interface gabitEther1/0/26port link-mode bridge# interface gabitEther1/0/27port link-mode bridge# interface gabitEther1/0/28port link-mode bridge# ospf 1 area work 55work 55#ip route-stat ip route-stat
15、 preference 80ip route-stat preference 100# snmp-agent snmp-agent local-enneid 800063A2033C8C402A76CDsnmp-agent munity write psnmp-agent munity read publsnmp-agent munity write privatesnmp-agent sys-info version allsnmp-agent target-host trap address udp-domain params securityname publsnmp-agent tra
16、p enable default-route# load ml-configuration# load tr069-configuration# user-interface au 0user-interface vty 0 15# return /S1/S2/S2dis cur # version 5.20, Release 2108P01 # sysname S2 # irf mac-address persistent timer irf auto-update enable undo irf link-delay # domain default enable system # ip
17、ttl-epires enable ip unreachables enable # undo ip enable # multast routing-ena # password-recovery enable # 1 # 3 to 5 # 30 # domain system access-limit disable state active idle-cut disable self-serve-url disable # user-group system group-attribute allow-guest # interface NULL0 # interface -interf
18、ace1 # interface -interface3 ip address igmp enable pim dm # interface -interface4 ip address igmp enable pim dm # interface -interface5 ip address pim dm # interface Ether1/0/1 port link-mode bridge port link-type trunk port trunk permit 1 3 to 5 # interface Ether1/0/2 port link-mode bridge # inter
19、face Ether1/0/3 port link-mode bridge # interface Ether1/0/4 port link-mode bridge # interface Ether1/0/5 port link-mode bridge # interface Ether1/0/6 port link-mode bridge # interface Ether1/0/7 port link-mode bridge # interface Ether1/0/8 port link-mode bridge # interface Ether1/0/9 port link-mode
20、 bridge # interface Ether1/0/10 port link-mode bridge # interface Ether1/0/11 port link-mode bridge # interface Ether1/0/12 port link-mode bridge # interface Ether1/0/13 port link-mode bridge # interface Ether1/0/14 port link-mode bridge # interface Ether1/0/15 port link-mode bridge # interface Ethe
21、r1/0/16 port link-mode bridge # interface Ether1/0/17 port link-mode bridge # interface Ether1/0/18 port link-mode bridge # interface Ether1/0/19 port link-mode bridge # interface Ether1/0/20 port link-mode bridge # interface Ether1/0/21 port link-mode bridge # interface Ether1/0/22 port link-mode b
22、ridge # interface Ether1/0/23 port link-mode bridge port access 3 # interface Ether1/0/24 port link-mode bridge port access 4 # interface gabitEther1/0/25 port link-mode bridge # interface gabitEther1/0/26 port link-mode bridge # interface gabitEther1/0/27 port link-mode bridge # interface gabitEthe
23、r1/0/28 port link-mode bridge # ospf 1 area work 55work 55work 55#snmp-agentsnmp-agent local-enneid 800063A2033C8C402B3DF9snmp-agent munity read publsnmp-agent munity write privatesnmp-agent sys-info version allsnmp-agent target-host trap address udp-domain params securityname publsnmp-agent trap en
24、able default-route#load ml-configuration#load tr069-configuration#user-interface au 0user-interface vty 0 15#Return/S2/R1/R1dis cur#version 5.20, Release 2513P27#sysname R1#nat address-group 1address 10 12#domain default enable system#ip ttl-epires enableip unreachables enable#dar p2p signature-file
25、 flash:/p2pdefault.mtd#port-security enable#undo ip enable#multast routing-enable#password-recovery enable#acl number 201 rule 0 permit source 55rule 1 permit source 55rule 2 deny # 1 # domain system access-limit disablestate active idle-cut disableself-serve-url disable# user-group systemgroup-attr
26、ibute allow-guest# local-user adminpassword cipher $c$3$40gC1cf/wIJNa1ufFPJsjKAof+QP5aVauthorization-attribute level 3serve-type tel#stp enable# cwmp undo cwmp enable# interface Au async mode flowlink-protocol ppp# interface Cellular0/0async mode protocollink-protocol ppp# interface Ether0/0port lin
27、k-mode routeshutdown ip address rp id 11 virtual-ip rp id 11 priority 100pim dm # interface Ether0/1port link-mode routenat outbound 201 address-group 1ip address 10 # interface Serial1/0link-protocol ppp# interface Serial2/0link-protocol ppp# interface NULL0 # interface Ether0/2port link-mode bridg
28、e# interface Ether0/3port link-mode bridge# interface Ether0/4port link-mode bridge# interface Ether0/5port link-mode bridge# interface Ether0/6port link-mode bridge# interface Ether0/7port link-mode bridge# interface Ether0/8port link-mode bridge# interface Ether0/9port link-mode bridge# interface
29、Ether0/10port link-mode bridge# interface Ether0/11port link-mode bridge# interface Ether0/12port link-mode bridge# interface Ether0/13port link-mode bridge# interface Ether0/14port link-mode bridge# interface Ether0/15port link-mode bridge# interface Ether0/16port link-mode bridge# interface Ether0/17port link-mode bridge#
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1