华为ensp小实验(路由下发+Easy IP+单臂路由+OSPF+Rip)
生活随笔
收集整理的這篇文章主要介紹了
华为ensp小实验(路由下发+Easy IP+单臂路由+OSPF+Rip)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
小實驗(路由下發(fā)+Easy IP+單臂路由+OSPF+Rip)
- 前言
- 一、實驗及需求
- 1、實驗題
- 2、需求
- 二、思維想法
- 三、實驗步驟
- 1、配置
- R1
- R2
- R3
- R4
- R5
- LSW1
- LSW2
- LSW3
- LSW4
- LSW5
- LSW6
- LSW7
- 2.連通性(太多了,只能舉例說明了)
- Server連通PC1及PC6
- PC1連通PC6及Server
- PC6連通PC1及Server
- 總結(jié)
前言
老樣子,復(fù)習(xí)下網(wǎng)絡(luò)基礎(chǔ)知識點,順便串聯(lián)起來。
一、實驗及需求
1、實驗題
2、需求
- 內(nèi)網(wǎng)全通及內(nèi)網(wǎng)通信外網(wǎng)
- 外網(wǎng)不能ping內(nèi)網(wǎng)PC及Server
二、思維想法
- 先配置好所有端口的IP及交換機(jī)/PC機(jī)/路由器之間的連接模式
- 然后配置好R1和R2的互相之間的默認(rèn)路由
- 再配置好內(nèi)網(wǎng)的OSPF及RIP
- 接著配置好默認(rèn)路由下發(fā)和OSPF與RIP之間的互相注入
- 最后配置ACL訪問控制列表,完成外網(wǎng)不能ping內(nèi)網(wǎng)的需求
三、實驗步驟
1、配置
R1
<Huawei>undo terminal monitor Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]user-interface console 0 [Huawei-ui-console0]idle-timeout 0 0 [Huawei-ui-console0]int g0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 202.2.2.1 24 [Huawei-GigabitEthernet0/0/0]int g0/0/1 [Huawei-GigabitEthernet0/0/1]ip add 202.2.12.1 24 [Huawei-GigabitEthernet0/0/1]q [Huawei]int loop 0 [Huawei-LoopBack0]ip add 1.1.1.1 32 [Huawei-LoopBack0]q [Huawei]ip route-s 0.0.0.0 0 202.2.12.2R2
<Huawei>u t m Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]user- con 0 [Huawei-ui-console0]id 0 0 [Huawei-ui-console0]q [Huawei]int g0/0/1 [Huawei-GigabitEthernet0/0/1]ip add 202.2.12.2 24 [Huawei-GigabitEthernet0/0/1]int g0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 10.1.113.1 24 [Huawei-GigabitEthernet0/0/0]int g0/0/2 [Huawei-GigabitEthernet0/0/2]ip add 10.1.111.2 24 [Huawei-GigabitEthernet0/0/2]int g2/0/0 [Huawei-GigabitEthernet2/0/0]ip add 10.1.112.2 24 [Huawei-GigabitEthernet2/0/0]int loop 0 [Huawei-LoopBack0]ip add 2.2.2.2 32 [Huawei-LoopBack0]q [Huawei]ospf 1 router-id 2.2.2.2 [Huawei-ospf-1]default-route-advertise [Huawei-ospf-1]area 0 [Huawei-ospf-1-area-0.0.0.0]net 2.2.2.2 0.0.0.0 [Huawei-ospf-1-area-0.0.0.0]net 10.1.113.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net 10.1.111.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net 10.1.112.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]q [Huawei-ospf-1]q [Huawei]acl 3000 [Huawei-acl-adv-3000]rule 5 permit ip source 10.1.0.0 0.0.255.255 [Huawei-acl-adv-3000]interface GigabitEthernet0/0/1 [Huawei-GigabitEthernet0/0/1]nat outbound 3000 [Huawei-GigabitEthernet0/0/1]q [Huawei]ip route-s 0.0.0.0 0 202.2.12.1 [Huawei]acl 3002 [Huawei-acl-adv-3002]rule deny icmp source 202.2.0.0 0.0.255.255 destination 10.1.0.0 0.0.255.255 [Huawei-acl-adv-3002]int g0/0/1 [Huawei-GigabitEthernet0/0/1]traffic-filter inbound acl 3002R3
<Huawei>undo terminal monitor Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]user-interface console 0 [Huawei-ui-console0]idle-timeout 0 0 [Huawei-ui-console0]q [Huawei]interface GigabitEthernet0/0/0 [Huawei-GigabitEthernet0/0/0]ip address 10.1.113.2 255.255.255.0 [Huawei-GigabitEthernet0/0/0]int g0/0/1 [Huawei-GigabitEthernet0/0/1]ip address 10.1.134.1 255.255.255.0 [Huawei-GigabitEthernet0/0/1]q [Huawei]int loop 0 [Huawei-LoopBack0]ip add 3.3.3.3 32 [Huawei-LoopBack0]q [Huawei]ospf 1 router-id 3.3.3.3 [Huawei-ospf-1]import-route rip 1 type 1 cost 1 [Huawei-ospf-1]area 0 [Huawei-ospf-1-area-0.0.0.0]net 10.1.113.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net 3.3.3.3 0.0.0.0 [Huawei-ospf-1-area-0.0.0.0]q [Huawei-ospf-1]q [Huawei]rip [Huawei-rip-1]default-route originate [Huawei-rip-1]undo summary [Huawei-rip-1]v 2 [Huawei-rip-1]net 10.0.0.0 [Huawei-rip-1]net 3.0.0.0 [Huawei-rip-1]import-route ospf 1 cost 14R4
<Huawei>undo terminal monitor Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]user-interface console 0 [Huawei-ui-console0]idle-timeout 0 0 [Huawei-ui-console0]q [Huawei]interface GigabitEthernet0/0/2 [Huawei-GigabitEthernet0/0/2] ip address 10.1.134.2 255.255.255.0 [Huawei-GigabitEthernet0/0/2]interface GigabitEthernet0/0/1 [Huawei-GigabitEthernet0/0/1] ip address 10.1.135.1 255.255.255.0 [Huawei-GigabitEthernet0/0/1]int loop 0 [Huawei-LoopBack0]ip add 4.4.4.4 32 [Huawei-LoopBack0]int g0/0/0 [Huawei-GigabitEthernet0/0/0]undo shutd Info: Interface GigabitEthernet0/0/0 is not shutdown. [Huawei-GigabitEthernet0/0/0]int g0/0/0.21 [Huawei-GigabitEthernet0/0/0.21]dot1q termination vid 21 [Huawei-GigabitEthernet0/0/0.21] ip address 10.1.21.1 255.255.255.0 [Huawei-GigabitEthernet0/0/0.21]arp broadcast enable [Huawei-GigabitEthernet0/0/0.21]int g0/0/0.22 [Huawei-GigabitEthernet0/0/0.22]dot1q termination vid 22 [Huawei-GigabitEthernet0/0/0.22] ip address 10.1.22.1 255.255.255.0 [Huawei-GigabitEthernet0/0/0.22]arp broadcast enable [Huawei-GigabitEthernet0/0/0.22]q [Huawei]rip [Huawei-rip-1]undo summary [Huawei-rip-1]v 2 [Huawei-rip-1]net 10.0.0.0 [Huawei-rip-1]net 4.0.0.0R5
<Huawei>undo terminal monitor Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]user-interface console 0 [Huawei-ui-console0]idle-timeout 0 0 [Huawei-ui-console0]interface GigabitEthernet0/0/1 [Huawei-GigabitEthernet0/0/1]ip address 10.1.135.2 255.255.255.0 [Huawei-GigabitEthernet0/0/1]interface GigabitEthernet0/0/0 [Huawei-GigabitEthernet0/0/0]ip address 10.1.100.1 255.255.255.0 [Huawei-GigabitEthernet0/0/0]int loop 0 [Huawei-LoopBack0]ip add 5.5.5.5 32 [Huawei-LoopBack0]q [Huawei]rip [Huawei-rip-1]undo summary [Huawei-rip-1]v 2 [Huawei-rip-1]network 10.0.0.0 [Huawei-rip-1]network 5.0.0.0LSW1
<Huawei>undo terminal monitor Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]user-interface console 0 [Huawei-ui-console0]idle-timeout 0 0 [Huawei-ui-console0]q [Huawei]vlan bat 11 12 1001 Info: This operation may take a few seconds. Please wait for a moment...done. [Huawei]int vlan 11 [Huawei-Vlanif11]ip add 10.1.11.1 24 [Huawei-Vlanif11]int vlan 12 [Huawei-Vlanif12]ip add 10.1.12.1 24 [Huawei-Vlanif12]int vlan 1001 [Huawei-Vlanif1001]ip add 10.1.111.1 24 [Huawei-Vlanif1001]int loop 0 [Huawei-LoopBack0]ip add 11.11.11.11 32 [Huawei-LoopBack0]q [Huawei]int Eth-Trunk 1 [Huawei-Eth-Trunk1]port link-type trunk [Huawei-Eth-Trunk1]port trunk allow-pass vlan all [Huawei-Eth-Trunk1]int g 0/0/1 [Huawei-GigabitEthernet0/0/1]port link-type access [Huawei-GigabitEthernet0/0/1]port default vlan 11 [Huawei-GigabitEthernet0/0/1]int g 0/0/2 [Huawei-GigabitEthernet0/0/2]port link-type access [Huawei-GigabitEthernet0/0/2]port default vlan 12 [Huawei-GigabitEthernet0/0/2]int g 0/0/3 [Huawei-GigabitEthernet0/0/3]port link-type access [Huawei-GigabitEthernet0/0/3]port default vlan 1001 [Huawei-GigabitEthernet0/0/3]int g 0/0/4 [Huawei-GigabitEthernet0/0/4]Eth-Trunk 1 Info: This operation may take a few seconds. Please wait for a moment...done. [Huawei-GigabitEthernet0/0/4]int g 0/0/5 [Huawei-GigabitEthernet0/0/5]Eth-Trunk 1 Info: This operation may take a few seconds. Please wait for a moment...done. [Huawei-GigabitEthernet0/0/5]q [Huawei]ospf 1 router-id 11.11.11.11 [Huawei-ospf-1]area 0 [Huawei-ospf-1-area-0.0.0.0]net 10.1.111.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net 11.11.11.11 0.0.0.0 [Huawei-ospf-1-area-0.0.0.0]net 10.1.11.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net 10.1.12.0 0.0.0.255LSW2
<Huawei>undo terminal monitor Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]user-interface console 0 [Huawei-ui-console0]idle-timeout 0 0 [Huawei-ui-console0]q [Huawei]vlan bat 13 14 1002 Info: This operation may take a few seconds. Please wait for a moment...done. [Huawei]int vlan 13 [Huawei-Vlanif13]ip add 10.1.13.1 24 [Huawei-Vlanif13]int vlan 14 [Huawei-Vlanif14]ip add 10.1.14.1 24 [Huawei-Vlanif14]int vlan 1002 [Huawei-Vlanif1002]ip add 10.1.112.1 24 [Huawei-Vlanif1002]int loop 0 [Huawei-LoopBack0]ip add 22.22.22.22 32 [Huawei-LoopBack0]q [Huawei]int Eth-Trunk 1 [Huawei-Eth-Trunk1]port link-type trunk [Huawei-Eth-Trunk1]port trunk allow-pass vlan all [Huawei-Eth-Trunk1]int g0/0/1 [Huawei-GigabitEthernet0/0/1]port link-type access [Huawei-GigabitEthernet0/0/1]port default vlan 13 [Huawei-GigabitEthernet0/0/1]int g0/0/2 [Huawei-GigabitEthernet0/0/2]port link-type access [Huawei-GigabitEthernet0/0/2]port default vlan 14 [Huawei-GigabitEthernet0/0/2]int g0/0/3 [Huawei-GigabitEthernet0/0/3]port link-type access [Huawei-GigabitEthernet0/0/3]port default vlan 1002 [Huawei-GigabitEthernet0/0/3]int g0/0/4 [Huawei-GigabitEthernet0/0/4]Eth-Trunk 1 Info: This operation may take a few seconds. Please wait for a moment...done. [Huawei-GigabitEthernet0/0/4]int g0/0/5 [Huawei-GigabitEthernet0/0/5]Eth-Trunk 1 Info: This operation may take a few seconds. Please wait for a moment...done. [Huawei-GigabitEthernet0/0/5]q [Huawei]ospf 1 router-id 22.22.22.22 Info: The configuration succeeded. You need to restart the OSPF process to valid ate the new router ID. [Huawei-ospf-1]area 0 [Huawei-ospf-1-area-0.0.0.0]net 10.1.112.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net 22.22.22.22 0.0.0.0 [Huawei-ospf-1-area-0.0.0.0]net 10.1.13.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net 10.1.14.0 0.0.0.255LSW3
<Huawei>undo terminal monitor Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]user-interface console 0 [Huawei-ui-console0]idle-timeout 0 0 [Huawei-ui-console0]q [Huawei]vlan 11 [Huawei-vlan11]interface Ethernet0/0/1 [Huawei-Ethernet0/0/1]port link-type access [Huawei-Ethernet0/0/1]port default vlan 11 [Huawei-Ethernet0/0/1]interface Ethernet0/0/2 [Huawei-Ethernet0/0/2]port link-type access [Huawei-Ethernet0/0/2]port default vlan 11LSW4
<Huawei>undo terminal monitor Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]user-interface console 0 [Huawei-ui-console0]idle-timeout 0 0 [Huawei-ui-console0]q [Huawei]vlan 12 [Huawei-vlan12]q [Huawei]interface Ethernet0/0/1 [Huawei-Ethernet0/0/1] port link-type access [Huawei-Ethernet0/0/1] port default vlan 12 [Huawei-Ethernet0/0/1]interface Ethernet0/0/2 [Huawei-Ethernet0/0/2]port link-type access [Huawei-Ethernet0/0/2]port default vlan 12LSW5
<Huawei>undo terminal monitor Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]user-interface console 0 [Huawei-ui-console0]idle-timeout 0 0 [Huawei-ui-console0]q [Huawei]vlan 13 [Huawei-vlan13]q [Huawei]interface Ethernet0/0/1 [Huawei-Ethernet0/0/1] port link-type access [Huawei-Ethernet0/0/1]port default vlan 13 [Huawei-Ethernet0/0/1]interface Ethernet0/0/2 [Huawei-Ethernet0/0/2]port link-type access [Huawei-Ethernet0/0/2]port default vlan 13LSW6
<Huawei>undo terminal monitor Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]user-interface console 0 [Huawei-ui-console0]idle-timeout 0 0 [Huawei-ui-console0]q [Huawei]vlan 14 [Huawei-vlan14]q [Huawei]interface Ethernet0/0/1 [Huawei-Ethernet0/0/1] port link-type access [Huawei-Ethernet0/0/1]port default vlan 14 [Huawei-Ethernet0/0/1]interface Ethernet0/0/2 [Huawei-Ethernet0/0/2]port link-type access [Huawei-Ethernet0/0/2]port default vlan 14LSW7
<Huawei>undo terminal monitor Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]user-interface console 0 [Huawei-ui-console0]idle-timeout 0 0 [Huawei-ui-console0]q [Huawei]vlan bat 21 22 Info: This operation may take a few seconds. Please wait for a moment...done. [Huawei]interface Ethernet0/0/1 [Huawei-Ethernet0/0/1]port link-type access [Huawei-Ethernet0/0/1]port default vlan 21 [Huawei-Ethernet0/0/1]interface Ethernet0/0/2 [Huawei-Ethernet0/0/2]port link-type trunk [Huawei-Ethernet0/0/2] port trunk allow-pass vlan all [Huawei-Ethernet0/0/2]interface Ethernet0/0/3 [Huawei-Ethernet0/0/3]port link-type access [Huawei-Ethernet0/0/3]port default vlan 222.連通性(太多了,只能舉例說明了)
我們就拿Server、PC1及PC6之間的通信舉例
Server連通PC1及PC6
PC1連通PC6及Server
PC>ping 202.2.2.100Ping 202.2.2.100: 32 data bytes, Press Ctrl_C to break From 202.2.2.100: bytes=32 seq=1 ttl=125 time=47 ms From 202.2.2.100: bytes=32 seq=2 ttl=125 time=47 ms From 202.2.2.100: bytes=32 seq=3 ttl=125 time=63 ms From 202.2.2.100: bytes=32 seq=4 ttl=125 time=62 ms From 202.2.2.100: bytes=32 seq=5 ttl=125 time=94 ms--- 202.2.2.100 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 47/62/94 msPC>ping 10.1.100.100Ping 10.1.100.100: 32 data bytes, Press Ctrl_C to break From 10.1.100.100: bytes=32 seq=1 ttl=250 time=62 ms From 10.1.100.100: bytes=32 seq=2 ttl=250 time=109 ms From 10.1.100.100: bytes=32 seq=3 ttl=250 time=79 ms From 10.1.100.100: bytes=32 seq=4 ttl=250 time=63 ms From 10.1.100.100: bytes=32 seq=5 ttl=250 time=78 ms--- 10.1.100.100 ping statistics ---5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 62/78/109 msPC6連通PC1及Server
PC>ping 10.1.11.100Ping 10.1.11.100: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 10.1.11.100 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet lossPC>ping 10.1.100.100Ping 10.1.100.100: 32 data bytes, Press Ctrl_C to break Request timeout! Request timeout! Request timeout! Request timeout! Request timeout!--- 10.1.100.100 ping statistics ---5 packet(s) transmitted0 packet(s) received100.00% packet loss總結(jié)
實際上,題目很簡單,只要思維條理清晰,一步一步順著思維來做,不僅能順利完成實驗需求,而且哪怕出了問題,也能輕松的排障,所以說,思維很重要,清晰的思維能更好的完成現(xiàn)實中繁重的工作。
簡單的來說,就是化一個繁為多個簡,輕松完成工作。
總結(jié)
以上是生活随笔為你收集整理的华为ensp小实验(路由下发+Easy IP+单臂路由+OSPF+Rip)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 海力士笔记本DDR4内存条:电脑速度飙升
- 下一篇: 纳米世界内存秘密:从奇妙纳米到技术突破