This is an old revision of the document!
Control Administrative Distance: distance
Topology route-map distribute-list route tag lab 4667c313-09ff-4150-a705-e283d90d93f0
Lab Specification
Environment: CML-P 2.0
route-map, Route Redistribution, distribute-list
Routing Protocol
EIGRP
OSPF
5 routers
Base Configuration
Common Configuration Snippet
Million common configuration is here.
-
-
R1
configure terminal
!
interface Loopback 0
ip address 10.0.1.1 255.255.255.0
interface Loopback 1
ip address 10.0.2.1 255.255.255.0
interface Loopback 2
ip address 10.0.3.1 255.255.255.0
interface Loopback 3
ip address 10.0.4.1 255.255.255.0
interface Loopback 4
ip address 10.0.5.1 255.255.255.0
interface GigabitEthernet 0/0
ip address 10.1.2.1 255.255.255.0
no shutdown
!
router eigrp 1
network 10.0.1.1 0.0.0.0
network 10.0.2.1 0.0.0.0
network 10.0.3.1 0.0.0.0
network 10.0.4.1 0.0.0.0
network 10.0.5.1 0.0.0.0
network 10.1.2.1 0.0.0.0
exit
!
end
R2
configure terminal
!
interface Loopback 0
ip address 10.128.1.2 255.255.255.0
interface Loopback 1
ip address 10.128.2.2 255.255.255.0
interface Loopback 2
ip address 10.128.3.2 255.255.255.0
interface Loopback 3
ip address 10.128.4.2 255.255.255.0
interface Loopback 4
ip address 10.128.5.2 255.255.255.0
interface GigabitEthernet 0/0
ip address 10.2.3.2 255.255.255.0
no shutdown
interface GigabitEthernet 0/1
ip address 10.1.2.2 255.255.255.0
no shutdown
!
router eigrp 1
network 10.128.1.2 0.0.0.0
network 10.128.2.2 0.0.0.0
network 10.128.3.2 0.0.0.0
network 10.128.4.2 0.0.0.0
network 10.128.5.2 0.0.0.0
network 10.2.3.2 0.0.0.0
network 10.1.2.2 0.0.0.0
exit
!
end
R3
configure terminal
!
interface GigabitEthernet 0/0
ip address 172.16.34.3 255.255.255.0
no shutdown
interface GigabitEthernet 0/1
ip address 10.2.3.3 255.255.255.0
no shutdown
!
router eigrp 1
network 10.2.3.3 0.0.0.0
!
! redistribute from ospf to eigrp
! bandwidth[kbps], delay[10us], reliability 100%, load 1, MTU 1500
redistribute ospf 1 metric 1000000 1 255 1 1500
router ospf 1
router-id 3.3.3.3
network 172.16.34.3 0.0.0.0 area 0
!
! redistribute from eigrp to ospf
redistribute eigrp 1 subnets
!
end
R4
configure terminal
!
interface GigabitEthernet 0/0
ip address 172.16.45.4 255.255.255.0
no shutdown
interface GigabitEthernet 0/1
ip address 172.16.34.4 255.255.255.0
no shutdown
!
router ospf 1
router-id 4.4.4.4
network 172.16.45.4 0.0.0.0 area 0
network 172.16.34.4 0.0.0.0 area 0
!
end
R5
configure terminal
!
interface GigabitEthernet 0/1
ip address 172.16.45.5 255.255.255.0
no shutdown
!
router ospf 1
router-id 5.5.5.5
network 172.16.45.5 0.0.0.0 area 0
!
end
access-list 10 permit ip 10.1.3.1 0.0.0.0 10.0.0.0 0.255.255.255
access-list 10 permit ip 10.2.3.1 0.0.0.0 10.0.0.0 0.255.255.255
!
router ospf 1
distance 130 0.0.0.0 255.255.255.255 10
AD EIGRP
router eigrp 1
distance eigrp 90 90
Topology: OSPF Route Filtering Lab 581c807c-e998-4929-9f53-7685fc6c3b88
Lab ID: 581c807c-e998-4929-9f53-7685fc6c3b88
-
-
-
Topology
Base Configuration
Common Configuration Snippet
Million common configuration is here.
-
-
R1
configure terminal
!
interface GigabitEthernet 0/1
ip address 10.1.2.1 255.255.255.0
no shutdown
interface GigabitEthernet 0/2
ip address 10.1.1.1 255.255.255.0
no shutdown
interface Loopback 0
ip address 1.1.0.1 255.255.255.0
ip ospf network point-to-point
interface Loopback 1
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point
interface Loopback 2
ip address 1.1.2.1 255.255.255.0
ip ospf network point-to-point
interface Loopback 3
ip address 1.1.3.1 255.255.255.0
ip ospf network point-to-point
interface Loopback 4
ip address 1.1.4.1 255.255.255.0
ip ospf network point-to-point
interface Loopback 5
ip address 1.1.5.1 255.255.255.0
ip ospf network point-to-point
interface Loopback 6
ip address 1.1.6.1 255.255.255.0
ip ospf network point-to-point
!
router ospf 1
router-id 1.1.1.1
network 10.1.1.1 0.0.0.0 area 10
network 10.1.2.1 0.0.0.0 area 10
network 1.1.0.1 0.0.0.0 area 10
network 1.1.1.1 0.0.0.0 area 10
network 1.1.2.1 0.0.0.0 area 10
network 1.1.3.1 0.0.0.0 area 10
network 1.1.4.1 0.0.0.0 area 10
network 1.1.5.1 0.0.0.0 area 10
network 1.1.6.1 0.0.0.0 area 10
exit
!
end
R2
configure terminal
!
interface GigabitEthernet 0/1
ip address 10.2.3.2 255.255.255.0
no shutdown
interface GigabitEthernet 0/2
ip address 10.1.2.2 255.255.255.0
no shutdown
interface Loopback 0
ip address 2.2.2.2 255.255.255.255
no shutdown
!
router ospf 1
router-id 2.2.2.2
network 10.1.2.2 0.0.0.0 area 10
network 10.2.3.2 0.0.0.0 area 0
network 2.2.2.2 0.0.0.0 area 0
exit
!
end
R3
configure terminal
!
interface GigabitEthernet 0/1
ip address 10.3.3.3 255.255.255.0
no shutdown
interface GigabitEthernet 0/2
ip address 10.2.3.3 255.255.255.0
no shutdown
interface Loopback 0
ip address 3.3.0.3 255.255.255.0
ip ospf network point-to-point
interface Loopback 1
ip address 3.3.1.3 255.255.255.0
ip ospf network point-to-point
interface Loopback 2
ip address 3.3.2.3 255.255.255.0
ip ospf network point-to-point
interface Loopback 3
ip address 3.3.3.3 255.255.255.0
ip ospf network point-to-point
interface Loopback 4
ip address 3.3.4.3 255.255.255.0
ip ospf network point-to-point
interface Loopback 5
ip address 3.3.5.3 255.255.255.0
ip ospf network point-to-point
interface Loopback 6
ip address 3.3.6.3 255.255.255.0
ip ospf network point-to-point
!
router ospf 1
router-id 3.3.3.3
network 10.2.3.3 0.0.0.0 area 0
network 10.3.3.3 0.0.0.0 area 0
network 3.3.0.3 0.0.0.0 area 0
network 3.3.1.3 0.0.0.0 area 0
network 3.3.2.3 0.0.0.0 area 0
network 3.3.3.3 0.0.0.0 area 0
network 3.3.4.3 0.0.0.0 area 0
network 3.3.5.3 0.0.0.0 area 0
network 3.3.6.3 0.0.0.0 area 0
exit
!
end
AD OSPF
4667c313-09ff-4150-a705-e283d90d93f0
router ospf 1
distance ospf external 115
router ospf 1
distance ospf intra-area 111
581c807c-e998-4929-9f53-7685fc6c3b88
router ospf 1
distance ospf inter-area 150 intra-area 115
Topology: Administrative Distance BGP Lab 03df5a48-efa7-4121-95e1-cd7b017fa16d
Lab ID: 03df5a48-efa7-4121-95e1-cd7b017fa16d
-
-
-
Topology
Base Configuration
Common Configuration Snippet
Million common configuration is here.
-
-
routing-concepts.administraitve-distance.bgp.2rt.2node.03df5a48.yaml
server-0
hostname server-0
ifconfig eth0 1.1.1.254 netmask 255.255.255.0 broadcast 1.1.1.255
route add default gw 1.1.1.1 eth0
server-1
hostname server-1
ifconfig eth0 2.2.2.254 netmask 255.255.255.0 broadcast 2.2.2.255
route add default gw 2.2.2.2 eth0
R1
configure terminal
!
interface GigabitEthernet 0/0
ip address 1.1.1.1 255.255.255.0
no shutdown
interface GigabitEthernet 0/1
ip address 3.0.0.1 255.255.255.0
no shutdown
!
router bgp 65000
neighbor 3.0.0.2 remote-as 65001
network 1.1.1.0 mask 255.255.255.0
exit
!
end
R2
configure terminal
!
interface GigabitEthernet 0/0
ip address 2.2.2.2 255.255.255.0
no shutdown
interface GigabitEthernet 0/1
ip address 3.0.0.2 255.255.255.0
no shutdown
!
router bgp 65001
neighbor 3.0.0.1 remote-as 65000
network 2.2.2.0 mask 255.255.255.0
exit
!
end
AD BGP
router bgp 65000
distance bgp 30 210 220
clear ip bgp *
References