作者:圈圈
ID:wljsghq
一、實驗及需求
1、實驗題
2、需求
[ ] 內(nèi)網(wǎng)全通及內(nèi)網(wǎng)通信外網(wǎng)
[ ] 外網(wǎng)不能ping內(nèi)網(wǎng)PC及Server
二、思維想法
[ ] 先配置好所有端口的IP及交換機/PC機/路由器之間的連接模式
[ ] 然后配置好R1和R2的互相之間的默認路由
[ ] 再配置好內(nèi)網(wǎng)的OSPF及RIP
[ ] 接著配置好默認路由下發(fā)和OSPF與RIP之間的互相注入
[ ] 最后配置ACL訪問控制列表,完成外網(wǎng)不能ping內(nèi)網(wǎng)的需求
三、實驗步驟
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
總結
實際上,題目很簡單,只要思維條理清晰,一步一步順著思維來做,不僅能順利完成實驗需求,而且哪怕出了問題,也能輕松的排障,所以說,思維很重要,清晰的思維能更好的完成現(xiàn)實中繁重的工作。
簡單的來說,就是化一個繁為多個簡,輕松完成工作。
審核編輯:湯梓紅
-
華為
+關注
關注
215文章
34263瀏覽量
251038 -
交換機
+關注
關注
20文章
2611瀏覽量
99138 -
路由器
+關注
關注
22文章
3699瀏覽量
113445 -
端口
+關注
關注
4文章
950瀏覽量
31990
原文標題:華為ensp實驗:路由下發(fā)+Easy IP+單臂路由+OSPF+Rip
文章出處:【微信號:網(wǎng)絡技術干貨圈,微信公眾號:網(wǎng)絡技術干貨圈】歡迎添加關注!文章轉載請注明出處。
發(fā)布評論請先 登錄
相關推薦
評論