Situation
# 將BGP的路由注入OSPF後,Metric會是多少?
What metric will be assigned when BGP routes are redistributed into OSPF?
# 將EIGRP的路由注入OSPF後,Metric又會是多少?
What metric will be assigned when EIGRP routes are redistributed into OSPF?
Configuration 1 > BGP
[R1]
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Ethernet0/0
ip address 10.0.0.1 255.255.255.0
no shutdown
!
router bgp 65001
network 1.1.1.1 mask 255.255.255.255
!
router ospf 1
router-id 1.1.1.1
redistribute bgp 65001 subnets
network 10.0.0.0 0.0.0.255 area 0
!
[R2]
!
interface Ethernet0/0
ip address 10.0.0.2 255.255.255.0
no shutdown
!
router ospf 1
router-id 2.2.2.2
network 10.0.0.0 0.0.0.255 area 0
!
Check 1 > BGP

Configuration 2 > EIGRP
[R1]
# 新增EIGRP並注入OSPF
!
interface Loopback1
ip address 2.2.2.2 255.255.255.255
!
router eigrp 1
network 2.2.2.2 0.0.0.0
!
router ospf 1
redistribute eigrp 1
!
Check 2 > EIGRP
