首页 > 其他分享 >CCNP Day4 EIGRP默认路由二

CCNP Day4 EIGRP默认路由二

时间:2022-11-25 14:35:03浏览次数:58  
标签:24 CCNP 0.0 Day4 172.16 EIGRP external type OSPF

1、网络拓扑

 

2、第三种方式配置默认路由(接口下汇总的方式)

R3#
R3#config t
Enter configuration commands, one per line.  End with CNTL/Z.        
R3(config)#interface s1/0
R3(config-if)#ip summary-address eigrp 100 0.0.0.0 0.0.0.0
R3(config-if)#end
R3#show 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 0.0.0.0 to network 0.0.0.0

     1.0.0.0/24 is subnetted, 1 subnets
D       1.1.1.0 [90/2300416] via 192.168.23.1, 00:00:05, Serial1/0
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
     172.16.0.0/24 is subnetted, 1 subnets
D       172.16.12.0 [90/2172416] via 192.168.23.1, 00:00:05, Serial1/0
C    192.168.23.0/24 is directly connected, Serial1/0
D*   0.0.0.0/0 is a summary, 00:00:05, Null0
R3#


R2#
R2#show 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 192.168.23.2 to network 0.0.0.0

     1.0.0.0/24 is subnetted, 1 subnets
D       1.1.1.0 [90/156160] via 172.16.12.1, 02:26:25, FastEthernet0/0
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.12.0 is directly connected, FastEthernet0/0
C    192.168.23.0/24 is directly connected, Serial1/0
D*   0.0.0.0/0 [90/2297856] via 192.168.23.2, 00:00:26, Serial1/0
R2#


R1#
R1#show 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.12.2 to network 0.0.0.0

     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.12.0 is directly connected, FastEthernet0/0
D    192.168.23.0/24 [90/2172416] via 172.16.12.2, 02:26:47, FastEthernet0/0
D*   0.0.0.0/0 [90/2300416] via 172.16.12.2, 00:00:40, FastEthernet0/0
R1#

3、第四种方式配置默认路由(特定路由的默认路由)

R3#show 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
D       1.1.1.0 [90/2300416] via 192.168.23.1, 00:00:39, Serial1/0
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
     172.16.0.0/24 is subnetted, 1 subnets
D       172.16.12.0 [90/2172416] via 192.168.23.1, 00:00:39, Serial1/0
C    192.168.23.0/24 is directly connected, Serial1/0
R3#config t
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#interface loopback 33
R3(config-if)#ip add 33.0.0.33 255.0.0.0
R3(config-if)#no shutdown 
R3(config-if)#exit
R3(config)#router eigrp 100 
R3(config-router)#network 33.0.0.33 0.0.0.0
R3(config-router)#end
R3#show ip
*Nov 25 13:04:08.023: %SYS-5-CONFIG_I: Configured from console by console
R3#show 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
D       1.1.1.0 [90/2300416] via 192.168.23.1, 00:01:42, Serial1/0
C    33.0.0.0/8 is directly connected, Loopback33
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
     172.16.0.0/24 is subnetted, 1 subnets
D       172.16.12.0 [90/2172416] via 192.168.23.1, 00:01:42, Serial1/0
C    192.168.23.0/24 is directly connected, Serial1/0
R3#

R3#config t
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#ip default-network 33.0.0.0  
R3(config)#end
R3#shiw
*Nov 25 13:06:15.331: %SYS-5-CONFIG_I: Configured from console by console
R3#show 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
D       1.1.1.0 [90/2300416] via 192.168.23.1, 00:03:49, Serial1/0
C*   33.0.0.0/8 is directly connected, Loopback33
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
     172.16.0.0/24 is subnetted, 1 subnets
D       172.16.12.0 [90/2172416] via 192.168.23.1, 00:03:49, Serial1/0
C    192.168.23.0/24 is directly connected, Serial1/0
R3#



R2#show 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
D       1.1.1.0 [90/156160] via 172.16.12.1, 02:41:09, FastEthernet0/0
D    33.0.0.0/8 [90/2297856] via 192.168.23.2, 00:00:19, Serial1/0
     3.0.0.0/24 is subnetted, 1 subnets
D       3.3.3.0 [90/2297856] via 192.168.23.2, 00:01:53, Serial1/0
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.12.0 is directly connected, FastEthernet0/0
C    192.168.23.0/24 is directly connected, Serial1/0
R2#
R2#
R2#
R2#show 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 192.168.23.2 to network 33.0.0.0

     1.0.0.0/24 is subnetted, 1 subnets
D       1.1.1.0 [90/156160] via 172.16.12.1, 02:43:41, FastEthernet0/0
D*   33.0.0.0/8 [90/2297856] via 192.168.23.2, 00:00:42, Serial1/0
     3.0.0.0/24 is subnetted, 1 subnets
D       3.3.3.0 [90/2297856] via 192.168.23.2, 00:04:24, Serial1/0
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.12.0 is directly connected, FastEthernet0/0
C    192.168.23.0/24 is directly connected, Serial1/0
R2#


R1#show 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
C       1.1.1.0 is directly connected, Loopback0
     3.0.0.0/24 is subnetted, 1 subnets
D       3.3.3.0 [90/2300416] via 172.16.12.2, 00:00:03, FastEthernet0/0
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.12.0 is directly connected, FastEthernet0/0
D    192.168.23.0/24 [90/2172416] via 172.16.12.2, 02:39:28, FastEthernet0/0
R1#
R1#
R1#
R1#show 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.12.2 to network 33.0.0.0

     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
D*   33.0.0.0/8 [90/2300416] via 172.16.12.2, 00:01:11, FastEthernet0/0
     3.0.0.0/24 is subnetted, 1 subnets
D       3.3.3.0 [90/2300416] via 172.16.12.2, 00:04:53, FastEthernet0/0
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.12.0 is directly connected, FastEthernet0/0
D    192.168.23.0/24 [90/2172416] via 172.16.12.2, 02:44:18, FastEthernet0/0
R1#

 

标签:24,CCNP,0.0,Day4,172.16,EIGRP,external,type,OSPF
From: https://www.cnblogs.com/leishu/p/16924995.html

相关文章

  • day41MySQL基础(3)
    目录无符号、零填充非空默认值唯一值主键自增外键前戏关系的判断一对多关系外键字段的建立多对多关系一对一关系无符号、零填充unsigned idintunsignedzerofill id......
  • CCNP Day3 EIGRP的相关概念
    1、Eigrp参数R2#showipeigrpneighborsIP-EIGRPneighborsforprocess100HAddressInterfaceHoldUptimeSRTTRTOQSeq......
  • day40MySQL
    存储数据的演变史1.文本文件 文件路径不固定:C:\aaa.txtD:\bbb.txtE:\ccc.txt数据格式不统一:jason|123jason$123 jason1232.软件开发目录规范 规定了数......
  • Eigrp 的配置与说明
    EIGRPDatabases(EIGRP数据库)存在三张表如下:1、邻居表neighbortable:EIGRP路由器会在启动后发送HELLO包来寻找和维持邻居关系2、拓扑表topologytable:EIGRP路由器会把从邻......
  • DAY4
    流程控制1.顺序结构2.选择结构a.算法结构很重要b.比如100个数字里查找,if分1-50;50-100,快速查找egpackagebasic;importjava.util.Scanner;publicclassa7i......
  • 代码随想录day4---LeetCode24. 两两交换链表中的节点&19.删除链表的倒数第N个节点&面
    LeetCode24.两两交换链表中的节点题目链接给你一个链表,两两交换其中相邻的节点,并返回交换后链表的头节点。你必须在不修改节点内部的值的情况下完成本题(即,只能进行节......
  • javascript-代码随想录训练营day4
    24.两两交换链表中的节点题目链接:https://leetcode.cn/problems/swap-nodes-in-pairs/题目描述:给你一个链表,两两交换其中相邻的节点,并返回交换后链表的头节点。你必须......
  • day49
    webEL表达式EL表达式:expressionlanguage 表达式语言,主要是从作用域中获取值格式:${}JSTL标签库:jsp页面中的标签库(c标签)解读标签fmt标签转年月日先将数......
  • Day4-4 while和do...while循环
    循环结构while循环do...while循环for循环Java5中引入了主要用于数组的增强型for循环。while循环while是最近本的循环,结构为:while(布尔表达式){......
  • Day4-2 顺序结构,If选择结构
    顺序结构Java基本结构就是顺序结构,除非特别指明,否则就按照顺序一句一句执行选择结构if单选择结构if双选择结构if多选择结构嵌套的if结构switch多选择结构......