动态路由的设置
[Huawei]ospf 1 //开启ospf
[Huawei-ospf-1]area 0
[Huawei-ospf-0.0.0.0]network 192.168.1.0 0.255.255.255 //宣告所在网段
[Huawei]ip route-static 0.0.0 0 192.168.4.2 默认路由
两台3层交换机同时配置vrrp协议
in vlan1
vrrp vrid 1 virtual-ip 192.168.1.254
display vrrp brief