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
浮动静态路由:配置
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
原文地址:http://blog.51cto.com/13934244/2300258