Default Route
route 0.0.0.0 0.0.0.0 192.168.1.2
RIP Default Route
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 192.168.12.0
R1(config-router)#network 192.168.13.0
R1(config-router)#default-information originate
EIGRP Default Route 1
R1(config)#ip route 0.0.0.0 0.0.0.0 loopback 0 ## 先設定 靜態預設路由
R1(config)#router eigrp 1
R1(config-router)#redistribute static ## 將 靜態路由 redistribute to EIGRP
AD/FD
Administrative Distance 2
Route Source | Default Distance Values | 符號 |
---|---|---|
Connected interface | 0 | |
Static route | 1 | |
Enhanced Interior Gateway Routing Protocol (EIGRP) summary route | 5 | |
External Border Gateway Protocol (BGP) | 20 | |
Internal EIGRP | 90 | D |
IGRP | 100 | |
OSPF | 10 | |
Intermediate System-to-Intermediate System (IS-IS) | 115 | |
Routing Information Protocol (RIP) | 120 | |
Exterior Gateway Protocol (EGP) | 140 | |
On Demand Routing (ODR) | 160 | |
External EIGRP | 170 | DEX |
Internal BGP | 200 | |
Unknown* | 255 |
Advertised Distance / Reporting distance
到目的地的 Metric
K 值
K1:帶寬 Bandwidth,=1
K2:負載 Load ,=0
K3:延遲 Delay,=1
K4:可靠 Reliability,=0
K5:MTU,=0
metric=[K1bandwidth+(K2bandwidth)/(256–load)+K3delay][K5/(reliability+K4)] (默認K5為0時,後半部分不參與計算,後半部分是[K5/(reliability+K4)])