路由器交换与配置综合实验(二)外网
生活随笔
收集整理的這篇文章主要介紹了
路由器交换与配置综合实验(二)外网
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
實驗拓撲圖
外網配置
配置主機
先認證再捆綁
使用CHAP認證進行
RT1主驗證 (采用簡單的接口驗證
[RT1]local-user rt2 class network New local user added.[RT1-luser-network-rt2]password simple rt2[RT1-luser-network-rt2]service-type ppp [RT1-luser-network-rt2]quit[RT1]inter s1/0 [RT1-Serial1/0]ppp authentication-mode chap[RT1-Serial1/0]inter s2/0 [RT1-Serial2/0]ppp authentication-mode chap)
RT1配置完成后,RT2馬上開啟認證
[RT2]inter s1/0[RT2-Serial1/0]ppp chap password simple rt2 [RT2-Serial1/0]dis inter s1/0 Serial1/0 Current state: UP Line protocol state: UP Description: Serial1/0 Interface Bandwidth: 64 kbps Maximum transmission unit: 1500 Hold timer: 10 seconds, retry times: 5 Internet protocol processing: Disabled Link layer protocol: PPP LCP: opened Output queue - Urgent queuing: Size/Length/Discards 0/100/0 Output queue - Protocol queuing: Size/Length/Discards 0/500/0 Output queue - FIFO queuing: Size/Length/Discards 0/75/0 Last link flapping: 0 hours 42 minutes 4 seconds Last clearing of counters: Never此時接口處于open狀態,所以我們需要重啟接口進行驗證
[RT2-Serial1/0]shut[RT2-Serial1/0]undo shut[RT2-Serial1/0]dis inter s1/0 Serial1/0 Current state: UP Line protocol state: UP Description: Serial1/0 Interface Bandwidth: 64 kbps Maximum transmission unit: 1500 Hold timer: 10 seconds, retry times: 5 Internet protocol processing: Disabled Link layer protocol: PPP LCP: opened Output queue - Urgent queuing: Size/Length/Discards 0/100/0 Output queue - Protocol queuing: Size/Length/Discards 0/500/0 Output queue - FIFO queuing: Size/Length/Discards 0/75/0 Last link flapping: 0 hours 0 minutes 34 seconds Last clearing of counters: Never接口仍處于open狀態則說明驗證成功,進入接口S2/0驗證
[RT2]inter s2/0 [RT2-Serial2/0]ppp chap user rt2 [RT2-Serial2/0]ppp chap password simple rt2 [RT2-Serial2/0]dis inter s2/0 Serial2/0 Current state: UP Line protocol state: UP Description: Serial2/0 Interface Bandwidth: 64 kbps Maximum transmission unit: 1500 Hold timer: 10 seconds, retry times: 5 Internet protocol processing: Disabled Link layer protocol: PPP LCP: opened Output queue - Urgent queuing: Size/Length/Discards 0/100/0 Output queue - Protocol queuing: Size/Length/Discards 0/500/0 Output queue - FIFO queuing: Size/Length/Discards 0/75/0 Last link flapping: 0 hours 54 minutes 43 seconds Last clearing of counters: Never[RT2-Serial2/0]shut [RT2-Serial2/0]%Dec 23 11:57:36:968 2021 RT2 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Serial2/0 changed to down. %Dec 23 11:57:36:968 2021 RT2 IFNET/3/PHY_UPDOWN: Physical state on the interface Serial2/0 changed to down.[RT2-Serial2/0]undo shut [RT2-Serial2/0]%Dec 23 11:57:44:464 2021 RT2 IFNET/3/PHY_UPDOWN: Physical state on the interface Serial2/0 changed to up. %Dec 23 11:57:44:465 2021 RT2 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Serial2/0 changed to up.[RT2-Serial2/0]dis inter s2/0 Serial2/0 Current state: UP Line protocol state: UP Description: Serial2/0 Interface Bandwidth: 64 kbps Maximum transmission unit: 1500 Hold timer: 10 seconds, retry times: 5 Internet protocol processing: Disabled Link layer protocol: PPP LCP: opened Output queue - Urgent queuing: Size/Length/Discards 0/100/0 Output queue - Protocol queuing: Size/Length/Discards 0/500/0 Output queue - FIFO queuing: Size/Length/Discards 0/75/0 Last link flapping: 0 hours 0 minutes 4 seconds Last clearing of counters: Never驗證結束,下面開始進行捆綁,先建立捆綁組,給捆綁組配置IP地址,再進入接口,把接口加入捆綁組
[RT1]inter mp [RT1]inter MP-group 1 [RT1-MP-group1]ip add 100.0.0.1 24 [RT1-MP-group1]quit [RT1]inter s1/0 [RT1-Serial1/0]ppp mp mp [RT1-Serial1/0]ppp mp MP-group 1 [RT1-Serial1/0]%Dec 23 12:03:58:777 2021 RT1 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Serial1/0 changed to down. %Dec 23 12:04:01:836 2021 RT1 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Serial1/0 changed to up.[RT1-Serial1/0]inter s2/0 [RT1-Serial2/0]ppp mp mp1 [RT1-Serial2/0]%Dec 23 12:04:56:494 2021 RT1 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Serial2/0 changed to down. %Dec 23 12:04:59:536 2021 RT1 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Serial2/0 changed to up. [RT2]inter MP-group 1[RT2-MP-group1]ip add 100.0.0.2 24 [RT2-MP-group1]inter s1/0 [RT2-Serial1/0]ppp mp MP-group 1 [RT2-Serial1/0]inter s2/0 [RT2-Serial2/0]ppp mp MP-group 1 [RT2-Serial2/0]quit//查看是否捆綁成功 [RT2]dis ppp mp ----------------------Slot0---------------------- Template: MP-group1 max-bind: 16, fragment: enabled, min-fragment: 128Master link: MP-group1, Active members: 2, Bundle MultilinkPeer's endPoint descriptor: MP-group1Sequence format: long (rcv)/long (sent)Bundle Up Time: 2021/12/23 12:07:04:6600 lost fragments, 0 reordered, 0 unassigned, 0 interleavedSequence: 0 (rcv)/0 (sent)Active member channels: 2 membersSerial1/0 Up-Time:2021/12/23 12:07:04:660Serial2/0 Up-Time:2021/12/23 12:07:42:40給RT2的g0/0接口配置ip地址
[RT2]inter g0/0[RT2-GigabitEthernet0/0]ip add 100.0.1.254 24 [RT2-GigabitEthernet0/0]quit查看RT2路由表是否出現100.0.0以及100.0.1兩個字段
[RT2]dis ip routing-tableDestinations : 17 Routes : 17Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 100.0.0.0/24 Direct 0 0 100.0.0.2 MP1 100.0.0.0/32 Direct 0 0 100.0.0.2 MP1 100.0.0.1/32 Direct 0 0 100.0.0.1 MP1 100.0.0.2/32 Direct 0 0 127.0.0.1 InLoop0 100.0.0.255/32 Direct 0 0 100.0.0.2 MP1 100.0.1.0/24 Direct 0 0 100.0.1.254 GE0/0 100.0.1.0/32 Direct 0 0 100.0.1.254 GE0/0 100.0.1.254/32 Direct 0 0 127.0.0.1 InLoop0 100.0.1.255/32 Direct 0 0 100.0.1.254 GE0/0 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0用ospf配置路由
[RT1-ospf-1]ospf [RT1-ospf-1]ar [RT1-ospf-1]area 0 [RT1-ospf-1-area-0.0.0.0]net 100.0.0.0 0.0.0.255 [RT1-ospf-1-area-0.0.0.0]quit [RT1-ospf-1]quit [RT2]ospf [RT2-ospf-1]ar [RT2-ospf-1]area 0 [RT2-ospf-1-area-0.0.0.0]net 100.0.0.0 0.0.0.255 [RT2-ospf-1-area-0.0.0.0]%Dec 23 12:28:22:096 2021 RT2 OSPF/5/OSPF_NBR_CHG: OSPF 1 Neighbor 100.0.0.1(MP-group1) changed from LOADING to FULL.[RT2-ospf-1-area-0.0.0.0]net 100.0.1.0 0.0.0.255 [RT2-ospf-1-area-0.0.0.0]quit [RT2-ospf-1]quit查看RT2,RT1路由表,RT2直連最優,RT1出現100.0.1字段說明能連通外網主機,并通過ping命令檢查連通性
[RT2]dis ip routing-tableDestinations : 17 Routes : 17Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 100.0.0.0/24 Direct 0 0 100.0.0.2 MP1 100.0.0.0/32 Direct 0 0 100.0.0.2 MP1 100.0.0.1/32 Direct 0 0 100.0.0.1 MP1 100.0.0.2/32 Direct 0 0 127.0.0.1 InLoop0 100.0.0.255/32 Direct 0 0 100.0.0.2 MP1 100.0.1.0/24 Direct 0 0 100.0.1.254 GE0/0 100.0.1.0/32 Direct 0 0 100.0.1.254 GE0/0 100.0.1.254/32 Direct 0 0 127.0.0.1 InLoop0 100.0.1.255/32 Direct 0 0 100.0.1.254 GE0/0 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 [RT1]dis ip routing-tableDestinations : 20 Routes : 20Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 10.0.0.0/30 Direct 0 0 10.0.0.2 GE0/0 10.0.0.0/32 Direct 0 0 10.0.0.2 GE0/0 10.0.0.2/32 Direct 0 0 127.0.0.1 InLoop0 10.0.0.3/32 Direct 0 0 10.0.0.2 GE0/0 100.0.0.0/24 Direct 0 0 100.0.0.1 MP1 100.0.0.0/32 Direct 0 0 100.0.0.1 MP1 100.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 100.0.0.2/32 Direct 0 0 100.0.0.2 MP1 100.0.0.255/32 Direct 0 0 100.0.0.1 MP1 100.0.1.0/24 O_INTRA 10 782 100.0.0.2 MP1 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 172.16.1.0/24 Static 60 0 10.0.0.1 GE0/0 172.16.2.0/24 Static 60 0 10.0.0.1 GE0/0 224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 [RT1][RT1]ping 100.0.1.1 Ping 100.0.1.1 (100.0.1.1): 56 data bytes, press CTRL_C to break 56 bytes from 100.0.1.1: icmp_seq=0 ttl=254 time=1.000 ms 56 bytes from 100.0.1.1: icmp_seq=1 ttl=254 time=1.000 ms 56 bytes from 100.0.1.1: icmp_seq=2 ttl=254 time=1.000 ms 56 bytes from 100.0.1.1: icmp_seq=3 ttl=254 time=1.000 ms 56 bytes from 100.0.1.1: icmp_seq=4 ttl=254 time=1.000 ms--- Ping statistics for 100.0.1.1 --- 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss round-trip min/avg/max/std-dev = 1.000/1.000/1.000/0.000 ms [RT1]%Dec 23 12:30:17:333 2021 RT1 PING/6/PING_STATISTICS: Ping statistics for 100.0.1.1: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 1.000/1.000/1.000/0.000 ms.此時,整個外網均已連通
總結
以上是生活随笔為你收集整理的路由器交换与配置综合实验(二)外网的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HJ7 取近似值(重点关注)
- 下一篇: rabbitMq工作模式特性及整合spr