2
0
mirror of https://github.com/gnu4cn/ccna60d.git synced 2024-05-21 04:55:00 +08:00
This commit is contained in:
Peng Hailin 2016-09-01 14:59:19 +08:00
parent 18cfe107cd
commit 1a3a933e84

View File

@ -750,4 +750,41 @@ Vl192 1 100 3609 Y Backup 192.168.1.1 192.168.1.254
> **注意**CCNA考试不要求完成这些高级对象追踪的配置。
下面的输出展示了如何配置VRRP的跟踪引用了对象1, 该被跟踪对象对`Loopback0`接口的线路协议进行跟踪:
```
VTP-Server-1(config)#track 1 interface Loopback0 line-protocol
VTP-Server-1(config-track)#exit
VTP-Server-1(config)#interface vlan192
VTP-Server-1(config-if)#vrrp 1 track 1
VTP-Server-1(config-if)#exit
```
而下面的输出则展示了如何将VRRP配置为对引用对象2的追踪此被追踪对象追踪了到前缀`1.1.1.1/32`的可达性。一个被追踪的IP路由对象在存在一个该路由的路由表条目时被认为是在线且可达的同时该路由不是无法访问的无法访问就是说有着255的路由度量值, 当发生无法访问时该路由就会从路由信息数据库中被移除a tracked IP route object is considered to be up and reachable when a routing table entry exists for the route and the route is not accessible(i.e., has a route metric of 255)in which case the route is removed from the Routing Information Base(RIB) anyway
```
VTP-Server-1(config)#track 2 ip route 1.1.1.1/32 reachability
VTP-Server-1(config-track)#exit
VTP-Server-1(config)#interface vlan192
VTP-Server-1(config-if)#vrrp 1 track 2
```
VRRP跟踪的配置是通过使用命令`show vrrp interface [name]`命令进行验证的。下面的输出对此进行了演示:
<pre>
VTP-Server-1#show vrrp interface vlan192
Vlan192 - Group 1
SWITCH-VRRP-Example
State is Master
Virtual IP address is 192.168.1.254
Virtual MAC address is 0000.5e00.0101
Advertisement interval is 0.100 sec
Preemption enabled
Priority is 105
<b>Track object 1 state Up decrement 10
Track object 2 state Up decrement 10</b>
Authentication MD5, key-string
Master Router is 192.168.1.1 (local), priority is 105
Master Advertisement interval is 0.100 sec
Master Down interval is 0.889 sec
</pre>