配置如下:
r1#show run
Building configuration...
Current configuration : 720 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname r1
!
no ip domain-lookup
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
ip address 192.168.1.1 255.255.255.0
clock rate 64000
!
interface Serial0/0/1
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown
!
router rip
network 1.0.0.0
network 192.168.1.0
!
ip classless
!
router rip
network 1.0.0.0
network 192.168.1.0
!
ip classless
!
line con 0
exec-timeout 0 0
line vty 0 4
login
!
end
R2#show run
Building configuration...
Current configuration : 827 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R2
!
no ip domain-lookup
!
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
ip address 192.168.1.2 255.255.255.0
!
interface Serial0/0/1
ip address 172.16.1.2 255.255.255.0
clock rate 64000
!
interface Vlan1
no ip address
shutdown
!
router rip
redistribute static
network 2.0.0.0
network 172.16.0.0
network 192.168.1.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 Null0
!
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
login
!
!
!
end
R3#show run
.....
!
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
!
interface Serial0/0/1
ip address 172.16.1.3 255.255.255.0
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0/0/1
!
.......
end
搞定,在每日一个实验技术圈里看到一个rip的重分布的实验 圈主的方法是ip default-network 实现
看来条条达到通罗马 在查查资料看看还能不能找到其他的方法可以实现
Keep Moving!!!