作者:圈圈
ID:wljsghq
一、实验及需求
1、实验题
2、需求
[ ] 内网全通及内网通信外网
[ ] 外网不能ping内网PC及Server
二、思维想法
[ ] 先配置好所有端口的IP及交换机/PC机/路由器之间的连接模式
[ ] 然后配置好R1和R2的互相之间的默认路由
[ ] 再配置好内网的OSPF及RIP
[ ] 接着配置好默认路由下发和OSPF与RIP之间的互相注入
[ ] 最后配置ACL访问控制列表,完成外网不能ping内网的需求
三、实验步骤
1、配置
R1
undoterminalmonitor Info:Currentterminalmonitorisoff. sys Entersystemview,returnuserviewwithCtrl+Z. [Huawei]user-interfaceconsole0 [Huawei-ui-console0]idle-timeout00 [Huawei-ui-console0]intg0/0/0 [Huawei-GigabitEthernet0/0/0]ipadd202.2.2.124 [Huawei-GigabitEthernet0/0/0]intg0/0/1 [Huawei-GigabitEthernet0/0/1]ipadd202.2.12.124 [Huawei-GigabitEthernet0/0/1]q [Huawei]intloop0 [Huawei-LoopBack0]ipadd1.1.1.132 [Huawei-LoopBack0]q [Huawei]iproute-s0.0.0.00202.2.12.2
R2
utm Info:Currentterminalmonitorisoff. sys Entersystemview,returnuserviewwithCtrl+Z. [Huawei]user-con0 [Huawei-ui-console0]id00 [Huawei-ui-console0]q [Huawei]intg0/0/1 [Huawei-GigabitEthernet0/0/1]ipadd202.2.12.224 [Huawei-GigabitEthernet0/0/1]intg0/0/0 [Huawei-GigabitEthernet0/0/0]ipadd10.1.113.124 [Huawei-GigabitEthernet0/0/0]intg0/0/2 [Huawei-GigabitEthernet0/0/2]ipadd10.1.111.224 [Huawei-GigabitEthernet0/0/2]intg2/0/0 [Huawei-GigabitEthernet2/0/0]ipadd10.1.112.224 [Huawei-GigabitEthernet2/0/0]intloop0 [Huawei-LoopBack0]ipadd2.2.2.232 [Huawei-LoopBack0]q [Huawei]ospf1router-id2.2.2.2 [Huawei-ospf-1]default-route-advertise [Huawei-ospf-1]area0 [Huawei-ospf-1-area-0.0.0.0]net2.2.2.20.0.0.0 [Huawei-ospf-1-area-0.0.0.0]net10.1.113.00.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net10.1.111.00.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net10.1.112.00.0.0.255 [Huawei-ospf-1-area-0.0.0.0]q [Huawei-ospf-1]q [Huawei]acl3000 [Huawei-acl-adv-3000]rule5permitipsource10.1.0.00.0.255.255 [Huawei-acl-adv-3000]interfaceGigabitEthernet0/0/1 [Huawei-GigabitEthernet0/0/1]natoutbound3000 [Huawei-GigabitEthernet0/0/1]q [Huawei]iproute-s0.0.0.00202.2.12.1 [Huawei]acl3002 [Huawei-acl-adv-3002]ruledenyicmpsource202.2.0.00.0.255.255destination10.1.0.00.0.255.255 [Huawei-acl-adv-3002]intg0/0/1 [Huawei-GigabitEthernet0/0/1]traffic-filterinboundacl3002
R3
undoterminalmonitor Info:Currentterminalmonitorisoff. sys Entersystemview,returnuserviewwithCtrl+Z. [Huawei]user-interfaceconsole0 [Huawei-ui-console0]idle-timeout00 [Huawei-ui-console0]q [Huawei]interfaceGigabitEthernet0/0/0 [Huawei-GigabitEthernet0/0/0]ipaddress10.1.113.2255.255.255.0 [Huawei-GigabitEthernet0/0/0]intg0/0/1 [Huawei-GigabitEthernet0/0/1]ipaddress10.1.134.1255.255.255.0 [Huawei-GigabitEthernet0/0/1]q [Huawei]intloop0 [Huawei-LoopBack0]ipadd3.3.3.332 [Huawei-LoopBack0]q [Huawei]ospf1router-id3.3.3.3 [Huawei-ospf-1]import-routerip1type1cost1 [Huawei-ospf-1]area0 [Huawei-ospf-1-area-0.0.0.0]net10.1.113.00.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net3.3.3.30.0.0.0 [Huawei-ospf-1-area-0.0.0.0]q [Huawei-ospf-1]q [Huawei]rip [Huawei-rip-1]default-routeoriginate [Huawei-rip-1]undosummary [Huawei-rip-1]v2 [Huawei-rip-1]net10.0.0.0 [Huawei-rip-1]net3.0.0.0 [Huawei-rip-1]import-routeospf1cost14
R4
undoterminalmonitor Info:Currentterminalmonitorisoff. sys Entersystemview,returnuserviewwithCtrl+Z. [Huawei]user-interfaceconsole0 [Huawei-ui-console0]idle-timeout00 [Huawei-ui-console0]q [Huawei]interfaceGigabitEthernet0/0/2 [Huawei-GigabitEthernet0/0/2]ipaddress10.1.134.2255.255.255.0 [Huawei-GigabitEthernet0/0/2]interfaceGigabitEthernet0/0/1 [Huawei-GigabitEthernet0/0/1]ipaddress10.1.135.1255.255.255.0 [Huawei-GigabitEthernet0/0/1]intloop0 [Huawei-LoopBack0]ipadd4.4.4.432 [Huawei-LoopBack0]intg0/0/0 [Huawei-GigabitEthernet0/0/0]undoshutd Info:InterfaceGigabitEthernet0/0/0isnotshutdown. [Huawei-GigabitEthernet0/0/0]intg0/0/0.21 [Huawei-GigabitEthernet0/0/0.21]dot1qterminationvid21 [Huawei-GigabitEthernet0/0/0.21]ipaddress10.1.21.1255.255.255.0 [Huawei-GigabitEthernet0/0/0.21]arpbroadcastenable [Huawei-GigabitEthernet0/0/0.21]intg0/0/0.22 [Huawei-GigabitEthernet0/0/0.22]dot1qterminationvid22 [Huawei-GigabitEthernet0/0/0.22]ipaddress10.1.22.1255.255.255.0 [Huawei-GigabitEthernet0/0/0.22]arpbroadcastenable [Huawei-GigabitEthernet0/0/0.22]q [Huawei]rip [Huawei-rip-1]undosummary [Huawei-rip-1]v2 [Huawei-rip-1]net10.0.0.0 [Huawei-rip-1]net4.0.0.0
R5
undoterminalmonitor Info:Currentterminalmonitorisoff. sys Entersystemview,returnuserviewwithCtrl+Z. [Huawei]user-interfaceconsole0 [Huawei-ui-console0]idle-timeout00 [Huawei-ui-console0]interfaceGigabitEthernet0/0/1 [Huawei-GigabitEthernet0/0/1]ipaddress10.1.135.2255.255.255.0 [Huawei-GigabitEthernet0/0/1]interfaceGigabitEthernet0/0/0 [Huawei-GigabitEthernet0/0/0]ipaddress10.1.100.1255.255.255.0 [Huawei-GigabitEthernet0/0/0]intloop0 [Huawei-LoopBack0]ipadd5.5.5.532 [Huawei-LoopBack0]q [Huawei]rip [Huawei-rip-1]undosummary [Huawei-rip-1]v2 [Huawei-rip-1]network10.0.0.0 [Huawei-rip-1]network5.0.0.0
LSW1
undoterminalmonitor Info:Currentterminalmonitorisoff. sys Entersystemview,returnuserviewwithCtrl+Z. [Huawei]user-interfaceconsole0 [Huawei-ui-console0]idle-timeout00 [Huawei-ui-console0]q [Huawei]vlanbat11121001 Info:Thisoperationmaytakeafewseconds.Pleasewaitforamoment...done. [Huawei]intvlan11 [Huawei-Vlanif11]ipadd10.1.11.124 [Huawei-Vlanif11]intvlan12 [Huawei-Vlanif12]ipadd10.1.12.124 [Huawei-Vlanif12]intvlan1001 [Huawei-Vlanif1001]ipadd10.1.111.124 [Huawei-Vlanif1001]intloop0 [Huawei-LoopBack0]ipadd11.11.11.1132 [Huawei-LoopBack0]q [Huawei]intEth-Trunk1 [Huawei-Eth-Trunk1]portlink-typetrunk [Huawei-Eth-Trunk1]porttrunkallow-passvlanall [Huawei-Eth-Trunk1]intg0/0/1 [Huawei-GigabitEthernet0/0/1]portlink-typeaccess [Huawei-GigabitEthernet0/0/1]portdefaultvlan11 [Huawei-GigabitEthernet0/0/1]intg0/0/2 [Huawei-GigabitEthernet0/0/2]portlink-typeaccess [Huawei-GigabitEthernet0/0/2]portdefaultvlan12 [Huawei-GigabitEthernet0/0/2]intg0/0/3 [Huawei-GigabitEthernet0/0/3]portlink-typeaccess [Huawei-GigabitEthernet0/0/3]portdefaultvlan1001 [Huawei-GigabitEthernet0/0/3]intg0/0/4 [Huawei-GigabitEthernet0/0/4]Eth-Trunk1 Info:Thisoperationmaytakeafewseconds.Pleasewaitforamoment...done. [Huawei-GigabitEthernet0/0/4]intg0/0/5 [Huawei-GigabitEthernet0/0/5]Eth-Trunk1 Info:Thisoperationmaytakeafewseconds.Pleasewaitforamoment...done. [Huawei-GigabitEthernet0/0/5]q [Huawei]ospf1router-id11.11.11.11 [Huawei-ospf-1]area0 [Huawei-ospf-1-area-0.0.0.0]net10.1.111.00.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net11.11.11.110.0.0.0 [Huawei-ospf-1-area-0.0.0.0]net10.1.11.00.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net10.1.12.00.0.0.255
LSW2
undoterminalmonitor Info:Currentterminalmonitorisoff. sys Entersystemview,returnuserviewwithCtrl+Z. [Huawei]user-interfaceconsole0 [Huawei-ui-console0]idle-timeout00 [Huawei-ui-console0]q [Huawei]vlanbat13141002 Info:Thisoperationmaytakeafewseconds.Pleasewaitforamoment...done. [Huawei]intvlan13 [Huawei-Vlanif13]ipadd10.1.13.124 [Huawei-Vlanif13]intvlan14 [Huawei-Vlanif14]ipadd10.1.14.124 [Huawei-Vlanif14]intvlan1002 [Huawei-Vlanif1002]ipadd10.1.112.124 [Huawei-Vlanif1002]intloop0 [Huawei-LoopBack0]ipadd22.22.22.2232 [Huawei-LoopBack0]q [Huawei]intEth-Trunk1 [Huawei-Eth-Trunk1]portlink-typetrunk [Huawei-Eth-Trunk1]porttrunkallow-passvlanall [Huawei-Eth-Trunk1]intg0/0/1 [Huawei-GigabitEthernet0/0/1]portlink-typeaccess [Huawei-GigabitEthernet0/0/1]portdefaultvlan13 [Huawei-GigabitEthernet0/0/1]intg0/0/2 [Huawei-GigabitEthernet0/0/2]portlink-typeaccess [Huawei-GigabitEthernet0/0/2]portdefaultvlan14 [Huawei-GigabitEthernet0/0/2]intg0/0/3 [Huawei-GigabitEthernet0/0/3]portlink-typeaccess [Huawei-GigabitEthernet0/0/3]portdefaultvlan1002 [Huawei-GigabitEthernet0/0/3]intg0/0/4 [Huawei-GigabitEthernet0/0/4]Eth-Trunk1 Info:Thisoperationmaytakeafewseconds.Pleasewaitforamoment...done. [Huawei-GigabitEthernet0/0/4]intg0/0/5 [Huawei-GigabitEthernet0/0/5]Eth-Trunk1 Info:Thisoperationmaytakeafewseconds.Pleasewaitforamoment...done. [Huawei-GigabitEthernet0/0/5]q [Huawei]ospf1router-id22.22.22.22 Info:Theconfigurationsucceeded.YouneedtorestarttheOSPFprocesstovalid atethenewrouterID. [Huawei-ospf-1]area0 [Huawei-ospf-1-area-0.0.0.0]net10.1.112.00.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net22.22.22.220.0.0.0 [Huawei-ospf-1-area-0.0.0.0]net10.1.13.00.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net10.1.14.00.0.0.255
LSW3
undoterminalmonitor Info:Currentterminalmonitorisoff. sys Entersystemview,returnuserviewwithCtrl+Z. [Huawei]user-interfaceconsole0 [Huawei-ui-console0]idle-timeout00 [Huawei-ui-console0]q [Huawei]vlan11 [Huawei-vlan11]interfaceEthernet0/0/1 [Huawei-Ethernet0/0/1]portlink-typeaccess [Huawei-Ethernet0/0/1]portdefaultvlan11 [Huawei-Ethernet0/0/1]interfaceEthernet0/0/2 [Huawei-Ethernet0/0/2]portlink-typeaccess [Huawei-Ethernet0/0/2]portdefaultvlan11
LSW4
undoterminalmonitor Info:Currentterminalmonitorisoff. sys Entersystemview,returnuserviewwithCtrl+Z. [Huawei]user-interfaceconsole0 [Huawei-ui-console0]idle-timeout00 [Huawei-ui-console0]q [Huawei]vlan12 [Huawei-vlan12]q [Huawei]interfaceEthernet0/0/1 [Huawei-Ethernet0/0/1]portlink-typeaccess [Huawei-Ethernet0/0/1]portdefaultvlan12 [Huawei-Ethernet0/0/1]interfaceEthernet0/0/2 [Huawei-Ethernet0/0/2]portlink-typeaccess [Huawei-Ethernet0/0/2]portdefaultvlan12
LSW5
undoterminalmonitor Info:Currentterminalmonitorisoff. sys Entersystemview,returnuserviewwithCtrl+Z. [Huawei]user-interfaceconsole0 [Huawei-ui-console0]idle-timeout00 [Huawei-ui-console0]q [Huawei]vlan13 [Huawei-vlan13]q [Huawei]interfaceEthernet0/0/1 [Huawei-Ethernet0/0/1]portlink-typeaccess [Huawei-Ethernet0/0/1]portdefaultvlan13 [Huawei-Ethernet0/0/1]interfaceEthernet0/0/2 [Huawei-Ethernet0/0/2]portlink-typeaccess [Huawei-Ethernet0/0/2]portdefaultvlan13
LSW6
undoterminalmonitor Info:Currentterminalmonitorisoff. sys Entersystemview,returnuserviewwithCtrl+Z. [Huawei]user-interfaceconsole0 [Huawei-ui-console0]idle-timeout00 [Huawei-ui-console0]q [Huawei]vlan14 [Huawei-vlan14]q [Huawei]interfaceEthernet0/0/1 [Huawei-Ethernet0/0/1]portlink-typeaccess [Huawei-Ethernet0/0/1]portdefaultvlan14 [Huawei-Ethernet0/0/1]interfaceEthernet0/0/2 [Huawei-Ethernet0/0/2]portlink-typeaccess [Huawei-Ethernet0/0/2]portdefaultvlan14
LSW7
undoterminalmonitor Info:Currentterminalmonitorisoff. sys Entersystemview,returnuserviewwithCtrl+Z. [Huawei]user-interfaceconsole0 [Huawei-ui-console0]idle-timeout00 [Huawei-ui-console0]q [Huawei]vlanbat2122 Info:Thisoperationmaytakeafewseconds.Pleasewaitforamoment...done. [Huawei]interfaceEthernet0/0/1 [Huawei-Ethernet0/0/1]portlink-typeaccess [Huawei-Ethernet0/0/1]portdefaultvlan21 [Huawei-Ethernet0/0/1]interfaceEthernet0/0/2 [Huawei-Ethernet0/0/2]portlink-typetrunk [Huawei-Ethernet0/0/2]porttrunkallow-passvlanall [Huawei-Ethernet0/0/2]interfaceEthernet0/0/3 [Huawei-Ethernet0/0/3]portlink-typeaccess [Huawei-Ethernet0/0/3]portdefaultvlan22
2.连通性(太多了,只能举例说明了)
我们就拿Server、PC1及PC6之间的通信举例
Server连通PC1及PC6
PC1连通PC6及Server
PC>ping202.2.2.100 Ping202.2.2.100:32databytes,PressCtrl_Ctobreak From202.2.2.100:bytes=32seq=1ttl=125time=47ms From202.2.2.100:bytes=32seq=2ttl=125time=47ms From202.2.2.100:bytes=32seq=3ttl=125time=63ms From202.2.2.100:bytes=32seq=4ttl=125time=62ms From202.2.2.100:bytes=32seq=5ttl=125time=94ms ---202.2.2.100pingstatistics--- 5packet(s)transmitted 5packet(s)received 0.00%packetloss round-tripmin/avg/max=47/62/94ms PC>ping10.1.100.100 Ping10.1.100.100:32databytes,PressCtrl_Ctobreak From10.1.100.100:bytes=32seq=1ttl=250time=62ms From10.1.100.100:bytes=32seq=2ttl=250time=109ms From10.1.100.100:bytes=32seq=3ttl=250time=79ms From10.1.100.100:bytes=32seq=4ttl=250time=63ms From10.1.100.100:bytes=32seq=5ttl=250time=78ms ---10.1.100.100pingstatistics--- 5packet(s)transmitted 5packet(s)received 0.00%packetloss round-tripmin/avg/max=62/78/109ms
PC6连通PC1及Server
PC>ping10.1.11.100 Ping10.1.11.100:32databytes,PressCtrl_Ctobreak Requesttimeout! Requesttimeout! Requesttimeout! Requesttimeout! Requesttimeout! ---10.1.11.100pingstatistics--- 5packet(s)transmitted 0packet(s)received 100.00%packetloss PC>ping10.1.100.100 Ping10.1.100.100:32databytes,PressCtrl_Ctobreak Requesttimeout! Requesttimeout! Requesttimeout! Requesttimeout! Requesttimeout! ---10.1.100.100pingstatistics--- 5packet(s)transmitted 0packet(s)received 100.00%packetloss
总结
实际上,题目很简单,只要思维条理清晰,一步一步顺着思维来做,不仅能顺利完成实验需求,而且哪怕出了问题,也能轻松的排障,所以说,思维很重要,清晰的思维能更好的完成现实中繁重的工作。
简单的来说,就是化一个繁为多个简,轻松完成工作。
审核编辑:汤梓红
-
华为
+关注
关注
215文章
34246浏览量
250938 -
交换机
+关注
关注
20文章
2610浏览量
99065 -
路由器
+关注
关注
22文章
3690浏览量
113400 -
端口
+关注
关注
4文章
944浏览量
31980
原文标题:华为ensp实验:路由下发+Easy IP+单臂路由+OSPF+Rip
文章出处:【微信号:网络技术干货圈,微信公众号:网络技术干货圈】欢迎添加关注!文章转载请注明出处。
发布评论请先 登录
相关推荐
评论