不卡AV在线|网页在线观看无码高清|亚洲国产亚洲国产|国产伦精品一区二区三区免费视频

學(xué)習(xí)啦>學(xué)習(xí)電腦>網(wǎng)絡(luò)知識>路由器>路由器設(shè)置>華為路由器>

怎么配置華為路由交換VRRP(2)

時間: 權(quán)威724 分享

  [S2]ping -c 1 10.0.11.1

  PING 10.0.11.1: 56 data bytes,press CTRL_C to break

  Reply from 10.0.11.1: bytes=56 Sequence=1 ttl=254 time=60 ms

  ---10.0.11.1 ping statistics ---

  1packet(s) transmitted

  1packet(s) received

  0.00% packet loss

  round-trip min/avg/max = 60/60/60 ms

  [S2]ping -c 1 10.0.1.1

  PING 10.0.1.1: 56 data bytes,press CTRL_C to break

  Reply from 10.0.1.1: bytes=56 Sequence=1 ttl=255 time=50 ms

  ---10.0.1.1 ping statistics ---

  1packet(s) transmitted

  1packet(s) received

  0.00% packet loss

  round-tripmin/avg/max = 50/50/50 ms

  [S2]ping -c 1 10.0.12.2

  PING 10.0.12.2: 56 data bytes,press CTRL_C to break

  Reply from 10.0.12.2: bytes=56 Sequence=1 ttl=255 time=60 ms

  ---10.0.12.2 ping statistics ---

  1packet(s) transmitted

  1packet(s) received

  0.00% packet loss

  round-trip min/avg/max = 60/60/60 ms

  步驟三.配置VRRP,實現(xiàn)網(wǎng)關(guān)冗余

  S1配置VRRP,使用VRRP組1,默認優(yōu)先級為100,實驗中定義為105.

  [S1]interface vlanif 1

  [S1-Vlanif1]vrrp vrid 1 virtual-ip10.0.123.1

  [S1-Vlanif1]vrrp vrid 1 priority 105

  [S2]interface vlanif 1

  [S2-Vlanif1]vrrp vri

  [S2-Vlanif1]vrrp vrid 1 vir

  [S2-Vlanif1]vrrp vrid 1 virtual-ip10.0.123.1

  配置完成后,在R2和R3上測試他們與模擬的Internet服務(wù)器之間的通訊是否正常。

  wKioL1O41UiTjPcFAAHXwe6gJAY922.jpg

  wKiom1O41XfQzNtzAAHMKUG_3tI540.jpg

  在S1上查看VRRP當前的狀態(tài)信息。

  [S1]disp vrrp

  Vlanif1 | Virtual Router 1

  State : Master

  Virtual IP : 10.0.123.1

  Master IP : 10.0.123.2

  PriorityRun : 105

  PriorityConfig : 105

  MasterPriority : 105

  Preempt : YES Delay Time : 0 s

  TimerRun : 1 s

  TimerConfig : 1 s

  Auth type : NONE

  Virtual MAC : 0000-5e00-0101

  Check TTL : YES

  Config type : normal-vrrp

  Create time : 2014-07-03 11:58:33 UTC-08:00

  Last change time: 2014-07-03 11:58:37 UTC-08:00

  當前R2與R3都是通過S1將數(shù)據(jù)包發(fā)送至internet的。關(guān)閉S1的vlanif 1接口,然后測試網(wǎng)絡(luò)是否正常切換。

  [S1]interface vlanif 1

  [S1-Vlanif1]shutdown

  在R2與R3上測試他們與模擬Internet服務(wù)器之間的通訊是否正常。

  wKioL1O41WWCZM2lAAG6obG33Lw414.jpg

  wKiom1O41ZTzMKKhAAHhhCqoXIg058.jpg

  此時相當于S1設(shè)備停止工作,查看S1與S2的VRRP狀態(tài)。

  [S1]disp vrrp

  Vlanif1 | Virtual Router 1

  State : Initialize

  Virtual IP : 10.0.123.1

  Master IP : 0.0.0.0

  PriorityRun : 105

  PriorityConfig : 105

  MasterPriority : 0

  Preempt : YES Delay Time : 0 s

  TimerRun : 1 s

  TimerConfig : 1 s

  Auth type : NONE

  Virtual MAC : 0000-5e00-0101

  Check TTL : YES

  Config type : normal-vrrp

  Create time : 2014-07-03 11:58:33 UTC-08:00

  Last change time: 2014-07-03 12:09:28 UTC-08:00

  dispvrrp

  Vlanif1 | Virtual Router 1

  State : Master

  Virtual IP : 10.0.123.1

  Master IP : 10.0.123.2

  PriorityRun : 100

  PriorityConfig : 100

  MasterPriority : 100

  Preempt : YES Delay Time : 0 s

  TimerRun : 1 s

  TimerConfig : 1 s

  Auth type : NONE

  Virtual MAC : 0000-5e00-0101

  Check TTL : YES

  Config type : normal-vrrp

  Create time : 2014-07-03 12:01:18 UTC-08:00

  Last change time : 2014-07-03 12:01:21UTC-08:00

  步驟四.跟蹤接口狀態(tài)

  重新打開S1的vlanif1接口,并配置S1、S2蹤它們的G0/0/1、G0/0/2接口。

  [S1]interfacevlanif 1

  [S1-Vlanif1]undoshutdown

  查看S1的vrrp狀態(tài)。

  [S1]displ vrrp

  Vlanif1 | Virtual Router 1

  State : Master

  Virtual IP : 10.0.123.1

  Master IP : 10.0.123.2

  PriorityRun : 105

  PriorityConfig : 105

  MasterPriority : 105

  Preempt : YES Delay Time : 0 s

  TimerRun : 1 s

  TimerConfig : 1 s

  Auth type : NONE

  Virtual MAC : 0000-5e00-0101

  Check TTL : YES

  Config type : normal-vrrp

  Create time : 2014-07-03 11:58:33 UTC-08:00

  Last change time : 2014-07-03 12:21:05UTC-08:00

  此時R2與R3通過S1發(fā)送數(shù)據(jù)給internet。如果關(guān)閉S1的G0/0/1接口,或關(guān)閉R1的G0/0/1接口,網(wǎng)絡(luò)將無法自動切換到通過S2發(fā)送數(shù)據(jù)給internet。

  關(guān)閉S1的G0/0/1接口

  [S1]interfaceg0/0/1

  [S1-GigabitEthernet0/0/1]shutdown

  [S1]dis vrrp brief

  VRID State Interface Type Virtual IP

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

  1 Master Vlanif1 Normal 10.0.123.1

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

  Total:1 Master:1 Backup:0 Non-active:0

  注:使用brief參數(shù)可以顯示簡略信息。

  測試R2與internet的連通性。

  顯示無法正常通信

  重新打開S1的G0/0/1接口

  [S1]interfaceg0/0/1

  [S1-GigabitEthernet0/0/1]undoshutdown

  S1和S2上配置VRRP的接口跟蹤,定義跟蹤G0/0/1接口,如果接口被關(guān)閉,則由此岸及降低10.這樣的情況下,S2將搶占S1的VRRP主角色

  [S1]interfacevlanif 1

  [S1-Vlanif1]vrrpvrid 1 track interface g0/0/1 reduced 10

  [S2]interfacevlanif 1

  [S2-Vlanif1]vrrpvrid 1 track interface g0/0/2 reduced 10

  此時,測試網(wǎng)絡(luò)的連通性。

  網(wǎng)絡(luò)正常時,R2可以與internet服務(wù)器通信。

  關(guān)閉S1的G0/0/1接口

  [S1]interfaceg0/0/1

  [S1-GigabitEthernet0/0/1]shutdown

  測試R2與internet服務(wù)器之間的連通性。

  通訊依然正常,查看S1的vrrp狀態(tài)。

  [S1]dis vrrp

  Vlanif1 | Virtual Router 1

  State : Backup

  Virtual IP : 10.0.123.1

  Master IP : 10.0.123.3

  PriorityRun : 95

  PriorityConfig : 105

  MasterPriority : 100

  Preempt : YES Delay Time : 0 s

  TimerRun : 1 s

  TimerConfig : 1 s

  Auth type : NONE

  Virtual MAC : 0000-5e00-0101

  Check TTL : YES

  Config type : normal-vrrp

  Track IF :GigabitEthernet0/0/1 Priority reduced :10

  IF state : DOWN

  Create time : 2014-07-03 11:58:33 UTC-08:00

  Last change time : 2014-07-03 14:58:38UTC-08:00

  看過文章“怎么配置華為路由交換VRRP”的人還看了:

  1.華為路由器配置命令大全

  2.華為路由器設(shè)置

  3.華為路由器設(shè)置wifi的詳細方法

  4.華為路由器配置詳細教程

  5.華為如何設(shè)置連接兩個無線路由器

  6.華為路由器詳細介紹

  7.華為無線路由器的設(shè)置方法

  8.華為3COM路由器如何保存配置

  9.華為路由器設(shè)置方法

  10.如何解決華為192.168.3.1打不開

怎么配置華為路由交換VRRP(2)

[S2]ping -c 1 10.0.11.1 PING 10.0.11.1: 56 data bytes,press CTRL_C to break Reply from 10.0.11.1: bytes=56 Sequence=1 ttl=254 time=60 ms ---10.0.11.1 ping statistics --- 1packet(s) transmitted 1packet
推薦度:
點擊下載文檔文檔為doc格式
574766