NA-NP-IE系列实验18:ip default-network
生活随笔
收集整理的這篇文章主要介紹了
NA-NP-IE系列实验18:ip default-network
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
實驗18:ip default-network 1.實驗目的 通過本實驗可以掌握如何通過ip default-network?向網絡中注入一條默認路由。 ? 2.拓撲結構 實驗拓撲如圖所示。 3.實驗步驟,配置如下: (1)ip default-network?后面的網絡一定要是主類網絡; (2)ip default-network?后面的網絡可以是直連的或者通過其它協議學到的網絡。 ? Router#conf t Enter configuration commands, one per line.??End with CNTL/Z. Router(config)#ho r0 r0(config)#no ip do loo r0(config)#lin c 0 r0(config-line)#logg s r0(config-line)#exec-t 00 r0(config-line)#exit r0(config)#int loo 1 r0(config-if)#ip add *Mar??1 00:04:06.075: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up r0(config-if)#ip add?2.2.2.2 255.255.255.0? r0(config-if)#int f1/0 r0(config-if)#ip add 172.16.1.2 255.255.255.0 r0(config-if)#no sh r0(config-if)#exit r0(config)# *Mar??1 00:04:31.031: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up *Mar??1 00:04:32.031: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up r0(config)#router rip r0(config-router)#ve 2 r0(config-router)#no au r0(config-router)#net 172.16.1.0 r0(config-router)#exit r0(config)#ip default-network?2.0.0.0?? r0(config)#do sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O -?OSPF,?IA?- OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set 1.0.0.0/24 is subnetted, 1 subnets R???????1.1.1.0 [120/1] via 172.16.1.1, 00:00:17, FastEthernet1/0 *???2.0.0.0/24 is subnetted, 1 subnets C???????2.2.2.0 is directly connected, Loopback1 172.16.0.0/24 is subnetted, 1 subnets C???????172.16.1.0 is directly connected, FastEthernet1/0 r0(config)# Router(config)#ho r1 r1(config)#no ip do loo r1(config)#lin c 0 r1(config-line)#logg s r1(config-line)#exec-t 00 r1(config-line)#exit r1(config)#int loo 1 r1(config-if)#ip add 1.1. *Mar??1 00:03:09.895: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up r1(config-if)#ip add?1.1.1.1 255.255.255.0 r1(config-if)#int f1/0 r1(config-if)#ip add 172.16.1.1 255.255.255.0 r1(config-if)#no sh r1(config-if)# *Mar??1 00:03:35.879: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up *Mar??1 00:03:36.879: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up r1(config-if)# r1(config-if)#exit r1(config)#router rip r1(config-router)#ve 2 r1(config-router)#no au r1(config-router)#net 172.16.1.0 r1(config-router)#net?1.0.0.0 r1(config-router)#do sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O -?OSPF,?IA?- OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is 172.16.1.2 to network?0.0.0.0 1.0.0.0/24 is subnetted, 1 subnets C???????1.1.1.0 is directly connected, Loopback1 172.16.0.0/24 is subnetted, 1 subnets C???????172.16.1.0 is directly connected, FastEthernet1/0 R*???0.0.0.0/0 [120/1] via 172.16.1.2, 00:00:13, FastEthernet1/0 r1(config-router)# 從以上輸出可以看出R1?上的“ip default-network”命令確實向RIP?網絡中注入一條 “R*”的默認路由。
本文轉自gauyanm 51CTO博客,原文鏈接:http://blog.51cto.com/gauyanm/235832,如需轉載請自行聯系原作者
本文轉自gauyanm 51CTO博客,原文鏈接:http://blog.51cto.com/gauyanm/235832,如需轉載請自行聯系原作者
總結
以上是生活随笔為你收集整理的NA-NP-IE系列实验18:ip default-network的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: docker compose部署服务
- 下一篇: Android 3.0 r1 API中文