EIGRP是CISCO私有協定,是自治區域内無環的快速收斂的路由協定。命名的EIGRP引入了位址族的概念,對IPV4和IPV6進行區分,所有配置都在執行個體下配置,配置排障非常友善。
實驗拓撲:三台路由器互聯,環回口和互聯接口啟用IPV4 IPV6位址,用命名的EIGRP協定進行路由通告。
R1配置
Hostname R1
ipv6 unicast-routing
//開啟IPV6單點傳播路由
key chain cisco
key 1
key-string cisco@123
//配置認證密碼
interface Loopback0
ip address 1.1.1.1 255.255.255.255
ipv6 enable
ipv6 address 2008::1/128
interface Ethernet0/0
interface Ethernet0/0
no shutdown
ip address 12.0.0.1 255.255.255.0
ipv6 enable
ipv6 address 2001::1/64
//配置接口IP位址
router eigrp cisco
address-family ipv4 autonomous-system 10
eigrp router-id 1.1.1.1
network 0.0.0.0
af-interface Ethernet0/0
authentication mode md5
authentication key-chain cisco
//配置IPV4位址族ID宣告所有接口,互聯接口下配置認證
address-family ipv6 unicast autonomous-system 10
eigrp router-id 1.1.1.1
af-interface ethernet 0/0
no shutdown
authentication mode md5
authentication key-chain cisco
af-interface loopback 0
//配置IPV6位址族ID 宣告所有接口,互聯接口下配置認證
end
R2配置(說明參見R1)
Hostname R2
ipv6 unicast-routing
key chain cisco
key 1
key-string cisco@123
interface Loopback0
ip address 2.2.2.2 255.255.255.255
ipv6 enable
ipv6 address 2008::2/128
interface Ethernet0/0
no shutdown
ip address 12.0.0.2 255.255.255.0
ipv6 enable
ipv6 address 2001::2/64
interface Ethernet0/1
no shutdown
ip address 23.0.0.2 255.255.255.0
ipv6 enable
ipv6 address 2002::2/64
router eigrp cisco
address-family ipv4 autonomous-system 10
eigrp router-id 2.2.2.2
network 0.0.0.0
af-interface Ethernet0/0
authentication mode md5
authentication key-chain cisco
address-family ipv6 unicast autonomous-system 10
eigrp router-id 2.2.2.2
af-interface ethernet 0/0
no shutdown
authentication mode md5
authentication key-chain cisco
af-interface ethernet 0/1
no shutdown
af-interface loopback 0
end
R3配置(說明參見R1)
Hostname R3
ipv6 unicast-routing
interface Loopback0
ip address 3.3.3.3 255.255.255.255
ipv6 enable
ipv6 address 2008::3/128
interface Ethernet0/1
no shutdown
ip address 23.0.0.3 255.255.255.0
ipv6 enable
ipv6 address 2002::3/64
router eigrp cisco
address-family ipv4 autonomous-system 10
eigrp router-id 3.3.3.3
network 0.0.0.0
address-family ipv6 unicast autonomous-system 10
eigrp router-id 3.3.3.3
af-interface ethernet 0/1
no shutdown
af-interface loopback 0
end
配置完成後在R2 上檢查鄰居關系,IPV4和IPv6 有認證和無認證方式全部正常建立。
在R3 檢查IPV4IPV6路由,通告正常
IPV4 IPV6網絡連通性測試正常。