EIGRP offset-list

現在PC2到PC1的路經: PC2 -> R2 -> R1 -> PC1

利用eigrp的offset-list更改路由, PC2 -> R2 -> R3 -> R1 -> PC1

PC1

ip 10.1.1.10/24 10.1.1.1

PC2

ip 20.1.1.10/24 20.1.1.2

R1

int f0/0
no shut
ip add 12.1.1.1 255.255.255.0

int f0/1
no shut
ip add 13.1.1.1 255.255.255.0

int f1/0
no shut
ip add 10.1.1.1 255.255.255.0

router eigrp 1
no auto
network 12.1.1.0 0.0.0.255
network 13.1.1.0 0.0.0.255
network 10.1.1.0 0.0.0.255

R2

int f0/0
no shut
ip add 12.1.1.2 255.255.255.0

int f0/1
no shut
ip add 23.1.1.2 255.255.255.0

int f1/0
no shut
ip add 20.1.1.2 255.255.255.0

router eigrp 1
no auto
network 12.1.1.0 0.0.0.255
network 23.1.1.0 0.0.0.255
network 20.1.1.0 0.0.0.255

R3

int f0/0
no shut
ip add 13.1.1.3 255.255.255.0

int f0/1
no shut
ip add 23.1.1.3 255.255.255.0

router eigrp 1
no auto
network 13.1.1.0 0.0.0.255
network 23.1.1.0 0.0.0.255

PC1 和 PC2已經可以互ping對方 及使用最低的FD連接

現在用offset-list在R2的f0/0, 面向R1發佈增加metric, 由於這個動作是發佈出去, 所以是out

R2

access-list 1 permit 10.1.1.0 0.0.0.255

router eigrp 1
offset-list 1 out 3000 f0/0

12.1.1.1由原來28160增加3000變成31160比23.1.1.3更低

發佈留言

*