WOLF-LAB沃尔夫网络实验室中国网络精英的发源地!
24小时咨询热线:173-1636-2402

新闻资讯

News

您当前位置: 新闻资讯 > 思科技术 > 详情

EI-CCNP培训企业基础结构-网关冗余协议HSRPVRRPGLBP配置实例与演示

发布日期:2022-04-12 浏览次数:2776 来源:杨广成

EI-CCIE培训企业基础结构-网关冗余协议HSRPVRRPGLBP配置实例与演示

官方微信同电话:17316362402,可加EI-CCIE培训企业基础学习群
WOLF-LAB沃尔夫提供免费基础课学习视频+资料+模拟器,联系客服获取

image.png

1.      R2R3之间配置HSRP,虚拟ip地址为1.1.234.254。在R2R3show standby观察HSRP的状态信息。

R2 R3

interface FastEthernet0/0

 standby 1 ip 1.1.234.254     //先在R2上配置,再在R3上配置。

R2#show standby

FastEthernet0/0 - Group 1

  State is Active    //R2的状态为ActiveActive/Standby默认是关抢占的,先在R2上做的配置。

    2 state changes, last state change 00:00:40

  Virtual IP address is 1.1.234.254

  Active virtual MAC address is 0000.0c07.ac01

    Local virtual MAC address is 0000.0c07.ac01 (default)

  Hello time 3 sec, hold time 10 sec

    Next hello sent in 1.200 secs

  Preemption disabled

  Active router is local

  Standby router is 1.1.234.3, priority 100 (expires in 8.812 sec)

  Priority 100 (default 100)

  IP redundancy name is "hsrp-Fa0/0-1" (default)

 

R3#show standby

FastEthernet0/0 - Group 1

  State is Standby     //R3的状态为Standby

    1 state change, last state change 00:01:38

  Virtual IP address is 1.1.234.254

  Active virtual MAC address is 0000.0c07.ac01

    Local virtual MAC address is 0000.0c07.ac01 (default)

  Hello time 3 sec, hold time 10 sec

    Next hello sent in 0.556 secs

  Preemption disabled

  Active router is 1.1.234.2, priority 100 (expires in 6.952 sec)

  Standby router is local

  Priority 100 (default 100)

  IP redundancy name is "hsrp-Fa0/0-1" (default)

3.      R3上开启针对上行接口的跟踪,若是上行接口down掉,让R2成为Acitve状态。此时在R4traceroute 1.1.1.1,观察现象。

R3

interface FastEthernet0/0

 standby 1 track Serial1/1 15    //R3的上行接口S1/1down掉,R3priority15

 

interface Serial1/1

 shutdown

 

R3

show standby

FastEthernet0/0 - Group 1

  State is Standby

    4 state changes, last state change 00:00:07

  Virtual IP address is 1.1.234.254

  Active virtual MAC address is 0000.0c07.ac01

    Local virtual MAC address is 0000.0c07.ac01 (default)

  Hello time 3 sec, hold time 10 sec

    Next hello sent in 1.592 secs

  Preemption enabled

  Active router is 1.1.234.2, priority 100 (expires in 7.620 sec)

  Standby router is local

  Priority 88 (configured 103)

    Track interface Serial1/1 state Down decrement 15

  IP redundancy name is "hsrp-Fa0/0-1" (default)

R4

R4#traceroute 1.1.1.1

Tracing the route to 1.1.1.1

  1 1.1.234.2 56 msec 36 msec 20 msec

  2 1.1.13.1 16 msec *  32 msec

5.      R2R3上删除HSRP的配置。在R2R3上分别配置Group1Group2HSRP,虚拟IP地址分别为1.1.234.2531.1.234.254。确保R2成为Group1Active状态,R3成为Group2Active状态。将R4的默认网关配置为1.1.234.253,关闭R5的路由功能,让其模拟主机,配置默认网关为1.1.234.254。在R4R5traceroute 1.1.1.1,观察现象。

R2 R3

interface FastEthernet0/0

 no standby 1

R2

interface FastEthernet0/0

standby 1 ip 1.1.234.253

 standby 1 priority 101

 standby 1 preempt

 standby 2 ip 1.1.234.254

R3

interface FastEthernet0/0

standby 1 ip 1.1.234.253

 standby 2 ip 1.1.234.254

 standby 2 priority 101

 standby 2 preempt

R2

show standby

FastEthernet0/0 - Group 1

  State is Active

    1 state change, last state change 00:01:53

  Virtual IP address is 1.1.234.253

  Active virtual MAC address is 0000.0c07.ac01

    Local virtual MAC address is 0000.0c07.ac01 (default)

  Hello time 3 sec, hold time 10 sec

    Next hello sent in 0.456 secs

  Preemption enabled

  Active router is local

  Standby router is 1.1.234.3, priority 100 (expires in 9.296 sec)

  Priority 101 (configured 101)

  IP redundancy name is "hsrp-Fa0/0-1" (default)

 

FastEthernet0/0 - Group 2

  State is Standby

    4 state changes, last state change 00:01:15

  Virtual IP address is 1.1.234.254

  Active virtual MAC address is 0000.0c07.ac02

    Local virtual MAC address is 0000.0c07.ac02 (default)

  Hello time 3 sec, hold time 10 sec

    Next hello sent in 2.036 secs

  Preemption disabled

  Active router is 1.1.234.3, priority 101 (expires in 8.016 sec)

  Standby router is local

  Priority 100 (default 100)

  IP redundancy name is "hsrp-Fa0/0-2" (default)

R4

traceroute 1.1.1.1

Tracing the route to 1.1.1.1

  1 1.1.234.2 56 msec 36 msec 20 msec

  2 1.1.13.1 16 msec *  32 msec

R5

traceroute 1.1.1.1

Tracing the route to 1.1.1.1

  1 1.1.234.3 56 msec 36 msec 20 msec

  2 1.1.13.1 16 msec *  32 msec




7.      删除第7题的配置。在R2R3上配置GLBP,虚拟ip地址为1.1.234.254,确保R2成为AVG Active,将R4R5的默认网关均配置为1.1.234.254,在R4R5traceroute 1.1.1.1,观察现象。

R2 R3

interface FastEthernet0/0

 no vrrp 1

R2

interface FastEthernet0/0

glbp 1 ip 1.1.234.254

glbp 1 priority 101

glbp 1 preempt

R3

interface FastEthernet0/0

glbp 1 ip 1.1.234.254

 

 

R2

show glbp

FastEthernet0/0 - Group 1

  State is Active       //AVG的状态Active

    2 state changes, last state change 00:01:25

  Virtual IP address is 1.1.234.254

  Hello time 3 sec, hold time 10 sec

    Next hello sent in 1.180 secs

  Redirect time 600 sec, forwarder time-out 14400 sec

  Preemption enabled, min delay 0 sec

  Active is local

  Standby is 1.1.234.3, priority 100 (expires in 7.204 sec)

  Priority 101 (configured)

  Weighting 100 (default 100), thresholds: lower 1, upper 100

  Load balancing: round-robin

  There are 2 forwarders (1 active)

  Forwarder 1

    State is Active     //AVF1的状态Active

      1 state change, last state change 00:01:15

    MAC address is 0007.b400.0101 (default)

    Owner ID is ca02.0544.0000

    Redirection enabled

    Preemption enabled, min delay 30 sec

    Active is local, weighting 100

  Forwarder 2

    State is Listen

    MAC address is 0007.b400.0102 (learnt)

    Owner ID is ca04.37d8.0000

    Redirection enabled, 599.948 sec remaining (maximum 600 sec)

    Time to live: 14399.944 sec (maximum 14400 sec)

    Preemption enabled, min delay 30 sec

    Active is 1.1.234.3 (primary), weighting 100 (expires in 9.936 sec)

R3

show glbp

FastEthernet0/0 - Group 1

  State is Standby      //AVG的状态Standby

    1 state change, last state change 00:02:34

  Virtual IP address is 1.1.234.254

  Hello time 3 sec, hold time 10 sec

    Next hello sent in 1.352 secs

  Redirect time 600 sec, forwarder time-out 14400 sec

  Preemption disabled

  Active is 1.1.234.2, priority 101 (expires in 9.352 sec)

  Standby is local

  Priority 100 (default)

  Weighting 100 (default 100), thresholds: lower 1, upper 100

  Load balancing: round-robin

  There are 2 forwarders (1 active)

  Forwarder 1

    State is Listen

    MAC address is 0007.b400.0101 (learnt)

    Owner ID is ca02.0544.0000

    Time to live: 14399.352 sec (maximum 14400 sec)

    Preemption enabled, min delay 30 sec

    Active is 1.1.234.2 (primary), weighting 100 (expires in 9.352 sec)

  Forwarder 2

    State is Active

      1 state change, last state change 00:02:44

    MAC address is 0007.b400.0102 (default)

    Owner ID is ca04.37d8.0000

    Preemption enabled, min delay 30 sec

    Active is local, weighting 100

R4

traceroute 1.1.1.1

Tracing the route to 1.1.1.1

  1 1.1.234.2 40 msec 32 msec 20 msec

  2 1.1.13.1 20 msec *  20 msec

R5

traceroute 1.1.1.1

Tracing the route to 1.1.1.1

  1 1.1.234.3 40 msec 32 msec 20 msec

  2 1.1.13.1 20 msec *  20 msec




 

我们会陆续更新思科CCNA,CCNP,EI CCIE;华为HCIA,HCIP,HCIE Datacom等培训考试学习视频,IT技术,学习技巧等
视频转码、资料等问题,可联系WOLF-LAB(沃尔夫)实验室进行更新!
http://www.wolf-lab.com/

返回目录
在线咨询