Thursday, April 18, 2013

Cisco, Comware, Procurve - Redistribution of EIGRP, OSPF, and RIP




Cisco 2600 Procurve H3C Cisco 2500
interface Loopback0 interface loopback 0 interface LoopBack0 interface Loopback0
 ip address 1.1.1.1 255.255.255.255    ip address 4.4.4.4/32  ip address 2.2.2.2 255.255.255.255  ip address 3.3.3.3 255.255.255.255
# !
interface FastEthernet0/0 ip routing vlan 10 interface Serial0
 ip address 10.10.10.1 255.255.255.252 #  ip address 10.10.20.2 255.255.255.252
! vlan 1 interface Vlan-interface10 !
interface Serial0/0    untagged 48  ip address 10.10.10.2 255.255.255.252 router eigrp 100
 ip address 10.10.20.1 255.255.255.252    ip address 192.168.1.50 255.255.255.0 #  network 3.0.0.0
clockrate 64000    ip rip 192.168.1.50 interface Ethernet1/0/1  network 10.0.0.0
!  port access vlan 10  no auto-summary
interface FastEthernet0/1 vlan 30 #
 ip address 10.10.30.1 255.255.255.252    untagged 1 ospf 1
!    ip address 10.10.30.2 255.255.255.252  area 0.0.0.0
router eigrp 100    ip rip 10.10.30.2   network 2.2.2.2 0.0.0.0
 redistribute ospf 1 metric 1000 1000 255 255 1500    ip rip 10.10.30.2 receive v1-or-v2   network 10.10.10.0 0.0.0.3
 redistribute rip metric 100 1000 255 255 1500
 network 1.1.1.1 0.0.0.0 router rip
 network 10.10.20.0 0.0.0.3    no auto-summary
 no auto-summary    redistribute connected
!    enable
router ospf 1
 log-adjacency-changes
 redistribute eigrp 100 subnets
 redistribute rip metric 100 subnets
 network 1.1.1.1 0.0.0.0 area 0
 network 10.10.10.0 0.0.0.3 area 0
!
router rip
 version 2
 redistribute eigrp 100 metric 8
 redistribute ospf 1 metric 8
 network 1.0.0.0
 network 10.0.0.0
 no auto-summary







2600#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       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/32 is subnetted, 1 subnets
C       1.1.1.1 is directly connected, Loopback0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/2] via 10.10.10.2, 07:20:56, FastEthernet0/0
     3.0.0.0/32 is subnetted, 1 subnets
D       3.3.3.3 [90/2297856] via 10.10.20.2, 07:21:51, Serial0/0
     4.0.0.0/32 is subnetted, 1 subnets
R       4.4.4.4 [120/1] via 10.10.30.2, 00:00:24, FastEthernet0/1
     10.0.0.0/30 is subnetted, 3 subnets
C       10.10.10.0 is directly connected, FastEthernet0/0
C       10.10.20.0 is directly connected, Serial0/0
C       10.10.30.0 is directly connected, FastEthernet0/1
R    192.168.1.0/24 [120/1] via 10.10.30.2, 00:00:24, FastEthernet0/1


Procurve# show ip route

                                         IP Route Entries

  Destination        Gateway         VLAN Type      Sub-Type   Metric     Dist.
  ------------------ --------------- ---- --------- ---------- ---------- -----
  1.1.1.1/32         10.10.30.1      30   rip                  2          120
  2.2.2.2/32         10.10.30.1      30   rip                  9          120
  3.3.3.3/32         10.10.30.1      30   rip                  9          120
  4.4.4.4/32         lo0                  connected            1          0
  10.10.10.0/30      10.10.30.1      30   rip                  2          120
  10.10.20.0/30      10.10.30.1      30   rip                  2          120
  10.10.30.0/30      VLAN30          30   connected            1          0
  127.0.0.0/8        reject               static               0          0
  127.0.0.1/32       lo0                  connected            1          0
  192.168.1.0/24     DEFAULT_VLAN    1    connected            1          0


<H3C>display ip routing-table
 Routing Table: public net
Destination/Mask   Protocol Pre  Cost        Nexthop         Interface
1.1.1.1/32         OSPF     10   11          10.10.10.1      Vlan-interface10
2.2.2.2/32         DIRECT   0    0           127.0.0.1       InLoopBack0
3.3.3.3/32         O_ASE    150  20          10.10.10.1      Vlan-interface10
4.4.4.4/32         O_ASE    150  100         10.10.10.1      Vlan-interface10
10.10.10.0/30      DIRECT   0    0           10.10.10.2      Vlan-interface10
10.10.10.2/32      DIRECT   0    0           127.0.0.1       InLoopBack0
10.10.20.0/30      O_ASE    150  20          10.10.10.1      Vlan-interface10
10.10.30.0/30      O_ASE    150  100         10.10.10.1      Vlan-interface10
127.0.0.0/8        DIRECT   0    0           127.0.0.1       InLoopBack0
127.0.0.1/32       DIRECT   0    0           127.0.0.1       InLoopBack0
192.168.1.0/24     O_ASE    150  100         10.10.10.1      Vlan-interface10


2500-hub#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route, o - ODR

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
D       1.1.1.1 [90/2297856] via 10.10.20.1, 07:26:09, Serial0
     2.0.0.0/32 is subnetted, 1 subnets
D EX    2.2.2.2 [170/3328000] via 10.10.20.1, 00:23:15, Serial0
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
     4.0.0.0/32 is subnetted, 1 subnets
D EX    4.4.4.4 [170/26368000] via 10.10.20.1, 00:24:23, Serial0
     10.0.0.0/30 is subnetted, 3 subnets
D EX    10.10.10.0 [170/3328000] via 10.10.20.1, 00:23:15, Serial0
C       10.10.20.0 is directly connected, Serial0
D EX    10.10.30.0 [170/26368000] via 10.10.20.1, 00:24:24, Serial0
D EX 192.168.1.0/24 [170/26368000] via 10.10.20.1, 00:24:24, Serial0


No comments:

Post a Comment

Please add comments so I may update the material to accommodate platform modification to various commands. Also if you have some real-world caveats, do please share.

Search Duke

About the Author

My photo
Central Florida, United States