HSRP-实验

bb

SW1#sh sp br

 

VLAN1

  Spanning tree enabled protocol ieee

  Root ID    Priority    8192

             Address     cc00.0e94.0000

             This bridge is the root

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    8192

             Address     cc00.0e94.0000

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface                                   Designated

Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID

-------------------- ------- ---- ----- --- ----- -------------------- -------

FastEthernet0/0      128.1    128    19 FWD     0  8192 cc00.0e94.0000 128.1 

FastEthernet0/1      128.2    128    19 FWD     0  8192 cc00.0e94.0000 128.2 

FastEthernet0/2      128.3    128    19 FWD     0  8192 cc00.0e94.0000 128.3 

FastEthernet0/3      128.4    128    19 FWD     0  8192 cc00.0e94.0000 128.4 

 

         

VLAN10

  Spanning tree enabled protocol ieee

  Root ID    Priority    8192

             Address     cc00.0e94.0001

             This bridge is the root

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    8192

             Address     cc00.0e94.0001

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface                                   Designated

Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID

-------------------- ------- ---- ----- --- ----- -------------------- -------

FastEthernet0/0      128.1    128    19 FWD     0  8192 cc00.0e94.0001 128.1 

FastEthernet0/1      128.2    128    19 FWD     0  8192 cc00.0e94.0001 128.2 

FastEthernet0/2      128.3    128    19 FWD     0  8192 cc00.0e94.0001 128.3 

FastEthernet0/3      128.4    128    19 FWD     0  8192 cc00.0e94.0001 128.4 

 

         

VLAN20

  Spanning tree enabled protocol ieee

  Root ID    Priority    8192

             Address     cc01.0e94.0002

             Cost        19

             Port        1 (FastEthernet0/0)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    16384

             Address     cc00.0e94.0002

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface                                   Designated

Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID

-------------------- ------- ---- ----- --- ----- -------------------- -------

FastEthernet0/0      128.1    128    19 FWD     0  8192 cc01.0e94.0002 128.1 

FastEthernet0/1      128.2    128    19 BLK     0  8192 cc01.0e94.0002 128.2 

FastEthernet0/2      128.3    128    19 FWD    19 16384 cc00.0e94.0002 128.3 

FastEthernet0/3      128.4    128    19 FWD    19 16384 cc00.0e94.0002 128.4

 

 

 

SW2#sh sp br

 

VLAN1

  Spanning tree enabled protocol ieee

  Root ID    Priority    8192

             Address     cc00.0e94.0000

             Cost        19

             Port        1 (FastEthernet0/0)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    16384

             Address     cc01.0e94.0000

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface                                   Designated

Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID

-------------------- ------- ---- ----- --- ----- -------------------- -------

FastEthernet0/0      128.1    128    19 FWD     0  8192 cc00.0e94.0000 128.1 

FastEthernet0/1      128.2    128    19 BLK     0  8192 cc00.0e94.0000 128.2 

FastEthernet0/2      128.3    128    19 FWD    19 16384 cc01.0e94.0000 128.3 

FastEthernet0/3      128.4    128    19 FWD    19 16384 cc01.0e94.0000 128.4 

 

         

VLAN10

  Spanning tree enabled protocol ieee

  Root ID    Priority    8192

             Address     cc00.0e94.0001

             Cost        19

             Port        1 (FastEthernet0/0)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    16384

             Address     cc01.0e94.0001

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface                                   Designated

Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID

-------------------- ------- ---- ----- --- ----- -------------------- -------

FastEthernet0/0      128.1    128    19 FWD     0  8192 cc00.0e94.0001 128.1 

FastEthernet0/1      128.2    128    19 BLK     0  8192 cc00.0e94.0001 128.2 

FastEthernet0/2      128.3    128    19 FWD    19 16384 cc01.0e94.0001 128.3 

FastEthernet0/3      128.4    128    19 FWD    19 16384 cc01.0e94.0001 128.4 

 

         

VLAN20

  Spanning tree enabled protocol ieee

  Root ID    Priority    8192

             Address     cc01.0e94.0002

             This bridge is the root

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    8192

             Address     cc01.0e94.0002

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface                                   Designated

Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID

-------------------- ------- ---- ----- --- ----- -------------------- -------

FastEthernet0/0      128.1    128    19 FWD     0  8192 cc01.0e94.0002 128.1 

FastEthernet0/1      128.2    128    19 FWD     0  8192 cc01.0e94.0002 128.2 

FastEthernet0/2      128.3    128    19 FWD     0  8192 cc01.0e94.0002 128.3 

FastEthernet0/3      128.4    128    19 FWD     0  8192 cc01.0e94.0002 128.4

 

 

 

 

SW3#sh sp br

 

VLAN1

  Spanning tree enabled protocol ieee uplinkfast enabled

  Root ID    Priority    8192

             Address     cc00.0e94.0000

             Cost        3019

             Port        1 (FastEthernet0/0)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    49152

             Address     cc02.0e94.0000

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface                                   Designated

Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID

-------------------- ------- ---- ----- --- ----- -------------------- -------

FastEthernet0/0      128.1    128  3019 FWD     0  8192 cc00.0e94.0000 128.3 

FastEthernet0/1      128.2    128  3019 BLK    19 16384 cc01.0e94.0000 128.3 

 

         

VLAN10

  Spanning tree enabled protocol ieee uplinkfast enabled

  Root ID    Priority    8192

             Address     cc00.0e94.0001

             Cost        3019

             Port        1 (FastEthernet0/0)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    49152

             Address     cc02.0e94.0001

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface                                   Designated

Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID

-------------------- ------- ---- ----- --- ----- -------------------- -------

FastEthernet0/0      128.1    128  3019 FWD     0  8192 cc00.0e94.0001 128.3 

FastEthernet0/1      128.2    128  3019 BLK    19 16384 cc01.0e94.0001 128.3 

FastEthernet0/2      128.3    128  3019 FWD  3019 49152 cc02.0e94.0001 128.3 

 

         

VLAN20

  Spanning tree enabled protocol ieee uplinkfast enabled

  Root ID    Priority    8192

             Address     cc01.0e94.0002

             Cost        3019

             Port        2 (FastEthernet0/1)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    49152

             Address     cc02.0e94.0002

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface                                   Designated

Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID

-------------------- ------- ---- ----- --- ----- -------------------- -------

FastEthernet0/0      128.1    128  3019 BLK    19 16384 cc00.0e94.0002 128.3 

FastEthernet0/1      128.2    128  3019 FWD     0  8192 cc01.0e94.0002 128.3

 

 

 

SW4#sh sp br

 

VLAN1

  Spanning tree enabled protocol ieee uplinkfast enabled

  Root ID    Priority    8192

             Address     cc00.0e94.0000

             Cost        3019

             Port        1 (FastEthernet0/0)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    49152

             Address     cc03.0e94.0000

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface                                   Designated

Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID

-------------------- ------- ---- ----- --- ----- -------------------- -------

FastEthernet0/0      128.1    128  3019 FWD     0  8192 cc00.0e94.0000 128.4 

FastEthernet0/1      128.2    128  3019 BLK    19 16384 cc01.0e94.0000 128.4 

 

         

VLAN10

  Spanning tree enabled protocol ieee uplinkfast enabled

  Root ID    Priority    8192

             Address     cc00.0e94.0001

             Cost        3019

             Port        1 (FastEthernet0/0)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    49152

             Address     cc03.0e94.0001

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface                                   Designated

Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID

-------------------- ------- ---- ----- --- ----- -------------------- -------

FastEthernet0/0      128.1    128  3019 FWD     0  8192 cc00.0e94.0001 128.4 

FastEthernet0/1      128.2    128  3019 BLK    19 16384 cc01.0e94.0001 128.4 

 

         

VLAN20

  Spanning tree enabled protocol ieee uplinkfast enabled

  Root ID    Priority    8192

             Address     cc01.0e94.0002

             Cost        3019

             Port        2 (FastEthernet0/1)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    49152

             Address     cc03.0e94.0002

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface                                   Designated

Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID

-------------------- ------- ---- ----- --- ----- -------------------- -------

FastEthernet0/0      128.1    128  3019 BLK    19 16384 cc00.0e94.0002 128.4 

FastEthernet0/1      128.2    128  3019 FWD     0  8192 cc01.0e94.0002 128.4 

FastEthernet0/2      128.3    128  3019 FWD  3019 49152 cc03.0e94.0002 128.3 

 

 

R5 ping R6效果:

Reply to request 4 (68 ms).  Received packet has options

 Total option bytes= 40, padded length=40

 Record route:

   (192.168.10.1)

   (192.168.20.251)

   (192.168.20.1)

   (192.168.20.1)

   (192.168.10.252)

   (192.168.10.1)

   (0.0.0.0)

   (0.0.0.0)

   (0.0.0.0)

 End of list

 

R6 ping R5 效果

Reply to request 4 (24 ms).  Received packet has options

 Total option bytes= 40, padded length=40

 Record route:

   (192.168.20.1)

   (192.168.10.252)

   (192.168.10.1)

   (192.168.10.1)

   (192.168.20.251)

   (192.168.20.1)

   (0.0.0.0)

   (0.0.0.0)

   (0.0.0.0)

 End of list

 

注:

1.HSRP无法自动切换:

  standby 2 track FastEthernet0/0 20  //跟踪接口,优先值减20

 

 

 

fj.png20120220223906.JPG

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20928363/viewspace-716834/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/20928363/viewspace-716834/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值