1. 程式人生 > >vrrp配置和浮動靜態路由

vrrp配置和浮動靜態路由

vrrp配置和浮動靜態路由

VRRP配置
在SW1配置
<Huawei>undo terminal monitor //關掉彈出來的資訊
<Huawei>system-view //進入系統模式
[Huawei]sysname SW1 //修改名稱
[SW1]vlan 10 //建立VLAN 10
[SW1-vlan10]quit //退出命令
[SW1]port-group group-member g0/0/1 g0/0/2 g0/0/3 //建立組在組裡進入介面g0/0/1 g0/0/2 g0/0/3
[SW1-port-group]port link-type access //把這個組加入access
[SW1-port-group]port default vlan 10 //把這個組進入VLAN 10

AR1
<Huawei>undo terminal monitor //關掉彈出來的資訊
<Huawei>system-view //進入系統模式
[華為]sysname AR1 //修改名稱
[AR1]interface GigabitEthernet0/0/0 //進入G0/0/0 介面
[AR1-GigabitEthernet0/0/0]ip address 192.168.10.254 24 //配置閘道器IP地址
[AR1-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.10.250 //配置虛擬閘道器IP地址

AR2
<Huawei>undo terminal monitor //關掉彈出來的資訊
<Huawei>system-view //進入系統模式
[huawei]sysname AR2 //修改名稱
[AR2]interface GigabitEthernet0/0/0 //進入g0/0/0介面
[AR2-GigabitEthernet0/0/0]ip address 192.168.10.253 24 //配置閘道器IP地址
[AR2-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.10.250 //配置虛擬閘道器IP地址

[AR2-GigabitEthernet0/0/0]vrrp vrid 1 priority 200 //修改優先順序為200

vrrp配置和浮動靜態路由

vrrp配置和浮動靜態路由
浮動靜態路由:配置
AR1:
<Huawei>undo terminal monitor //關掉彈出來的資訊
<Huawei>system-view //進入系統模式
[huawei]sysname AR1 //修改名稱
[AR1]interface GigabitEthernet0/0/0 //進入G0/0/0 介面
[AR1-GigabitEthernet0/0/0]ip address 192.168.10.254 24 //配置閘道器IP地址
[AR1-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.10.250 //配置虛擬閘道器IP地址
[AR1]interface GigabitEthernet 0/0/1 //進入g0/0/1 //進入介面
[AR1-GigabitEthernet0/0/1]ip address 192.168.13.1 24 //配置IP地址
[AR1]ip route-static 192.168.30.0 24 192.168.13.3 //嚇一跳

AR2:
<Huawei>undo terminal monitor //關掉彈出來的資訊
<Huawei>system-view //進入系統模式
[huawei]sysname AR2 //修改名稱
[AR2]interface GigabitEthernet0/0/0 //進入g0/0/0介面
[AR2-GigabitEthernet0/0/0]ip address 192.168.10.253 24 //配置閘道器IP地址
[AR2-GigabitEthernet0/0/0]vrrp vrid 1 virtual-ip 192.168.10.250 //配置虛擬閘道器IP地址
[AR2-GigabitEthernet0/0/0]vrrp vrid 1 priority 200 //修改優先順序為200
[AR2]interface GigabitEthernet 0/0/1 //進入介面
[AR2-GigabitEthernet0/0/1]ip address 192.168.23.2 24 //配置IP地址
[AR2]ip route-static 0.0.0.0 0.0.0.0 192.168.23.3 //嚇一跳靜態路由

ISP:
<Isp>system-view //進入系統模式
[Isp]sysname Isp //修改名稱
[Isp]interface GigabitEthernet 0/0/0 //進入介面g0/0/0
[Isp-GigabitEthernet0/0/0]ip address 192.168.13.3 24 //配置IP地址
[Isp]interface GigabitEthernet 0/0/1 //進入介面g0/0/1
[Isp-GigabitEthernet0/0/1]ip address 192.168.23.3 24 //配置IP地址
[Isp]interface GigabitEthernet 0/0/2 //進入介面g0/0/2
[Isp-GigabitEthernet0/0/2]ip address 192.168.30.254 24 //配置閘道器IP地址
[Isp]ip route-static 192.168.10.0 24 192.168.23.2 //嚇一跳,預設優先順序為60
[Isp]ip route-static 192.168.10.0 24 192.168.13.1 preference 65 //嚇一跳,修改優先順序為65
vrrp配置和浮動靜態路由