1.RIP
 
实验要求:在R3中将默认路由重发布进RIP
基本配置:
R1:
R1(config)#router rip
 R1(config-router)#version 2
 R1(config-router)#network 12.0.0.0
 R1(config-router)#no auto-summary
R2:
R2(config)#router rip
 R2(config-router)#version 2
 R2(config-router)#network 12.0.0.0
 R2(config-router)#network 23.0.0.0
R3:
R3(config)#router rip
 R3(config-router)#version 2
 R3(config-router)#network 23.0.0.0
 
方法一、
R3:
R3(config)#router rip
R3(config-router)#redistribute static metric 1
R3(config)#ip route 0.0.0.0 0.0.0.0 172.16.1.2
 
方法二、
R3:
R3(config)#router rip
R3(config-router)#default-information originate
 
 
实验结果
R1#sh ip route
     12.0.0.0/24 is subnetted, 1 subnets
C       12.1.1.0 is directly connected, FastEthernet0/0
R    23.0.0.0/8 [120/1] via 12.1.1.2, 00:00:24, FastEthernet0/0
R*   0.0.0.0/0 [120/2] via 12.1.1.2, 00:00:24, FastEthernet0/0
 
R2#sh ip route
     12.0.0.0/24 is subnetted, 1 subnets
C       12.1.1.0 is directly connected, FastEthernet0/0
     23.0.0.0/24 is subnetted, 1 subnets
C       23.1.1.0 is directly connected, FastEthernet0/1
R*   0.0.0.0/0 [120/1] via 23.1.1.2, 00:00:27, FastEthernet0/1
 
R1#ping 172.16.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/20/20 ms
 
 
2.EIGRP
 
实验要求:在R3中将默认路由重发布进EIGRP
基本配置:
R1:
R1(config)#router eigrp 100
 R1(config-router)#network 12.0.0.0
R1(config-router)# no auto-summary
R2:
R2(config)#Router eigrp 100
R2(config-router)#network 12.0.0.0
 R2(config-router)#network 23.0.0.0
R3:
R3(config)#Router eigrp 100
 R3(config-router)#network 23.0.0.0
R3(config-router)#no auto-summary
R3(config-router)#network 172.16.1.0  0.0.0.255
R3(config)#ip default-network 172.16.0.0