實驗名稱:華為vrrp配置
實驗目的:為了實現路由器的冗餘即備份,當其中乙個三層交換機壞了,pc還能正常上網
實驗拓撲:
sw3 配置步驟
思路:建立vlan10 20 30 40 ,01、02、03、04埠分別加入vlan10到40.
05、06埠配置trunk模式允許所有vlan通過
[huawei]sysname sw1
建立vlan
[sw1]vlan batch 10 20 30 40
加入vlan10
[sw1]inter gigabitethernet 0/0/1
[sw1-gigabitethernet0/0/1]port link-type access
[sw1-gigabitethernet0/0/1]port default vlan 10
加入vlan20
[sw1-gigabitethernet0/0/1]inter gi 0/0/2
[sw1-gigabitethernet0/0/2]port link-type access
[sw1-gigabitethernet0/0/2]port default vlan 20
加入vlan30
[sw1-gigabitethernet0/0/2]inter gi 0/0/3
[sw1-gigabitethernet0/0/3]port link-type access
[sw1-gigabitethernet0/0/3]port default vlan 30
加入vlan40
[sw1-gigabitethernet0/0/3]inter gi0/0/4
[sw1-gigabitethernet0/0/4]port link-type access
[sw1-gigabitethernet0/0/4]port default vlan 40
[sw1-gigabitethernet0/0/4]q
配置trunk模式
[sw1]inter gigabitethernet 0/0/6
[sw1-gigabitethernet0/0/6]port link-type trunk
[sw1-gigabitethernet0/0/6]port trunk allow-pass vlan all
[sw1]inter gi 0/0/5
[sw1-gigabitethernet0/0/5]port link-type trunk
[sw1-gigabitethernet0/0/5]port trunk allow-pass vlan a
配置sw2
sys建立vlan
[huawei]vlan batch 10 20 30 40
每個vlan配置ip位址
[huawei]inter vlan 10
[huawei-vlanif10]ip address 192.168.10.253 255.255.255.0
[huawei-vlanif10]inter vlan 20
[huawei-vlanif20]ip address 192.168.20.253 255.255.255.0
[huawei-vlanif20]inter vlan 30
[huawei-vlanif30]ip address 192.168.30.253 255.255.255.0
[huawei-vlanif30]inter vlan 40
[huawei-vlanif40]ip address 192.168.40.253 255.255.255.0
把vlan40加入組,並配置vrrp
vrrp配置虛擬ip
[huawei-vlanif40]vrrp vrid 40 virtual-ip 192.168.40.250
配置優先順序
[huawei-vlanif40]vrrp vrid 40 priority 150
配置 鏈路跟蹤
[huawei-vlanif40]vrrp vrid 40 track inte***ce gi0/0/2 reduced 100(如果gi0/0/2埠的狀態變為down,則優先順序降低100,變為50)
相同的操作配置vlan30
[huawei-vlanif40]inter vlan 30
[huawei-vlanif30]vrrp vrid 30 virtual-ip 192.168.30.250
[huawei-vlanif30]vrrp vrid 30 priority 100
[huawei-vlanif30]vrrp vrid 30 track inte***ce gigabitethernet 0/0/2 reduced 100
開啟vlan10的vrrp功能
[huawei-vlanif30]inter vlan 10
[huawei-vlanif10]vrrp vrid 10 virtual-ip 192.168.10.250
開啟vlan20的vrrp功能
[huawei-vlanif10]inter vlan 20
[huawei-vlanif20]vrrp vrid 20 virtual-ip 192.168.20.250
將gi0/0/1配置為trunk模式
[huawei-vlanif20]inter gi0/0/1
[huawei-gigabitethernet0/0/1]port link-type trunk
[huawei-gigabitethernet0/0/1]port trunk allow-pass vlan all
sw1配置vlan10 20 的vrrp優先順序為150
vlan30 40 開啟vrrp
sys[huawei]vlan batch 10 20 30 40
[huawei]inter vlan 10
[huawei-vlanif10]ip address 192.168.10.254 255.255.255.0
[huawei-vlanif10]inter vlan 20
[huawei-vlanif20]ip address 192.168.20.254 255.255.255.0
[huawei-vlanif20]inter vlan 30
[huawei-vlanif30]ip address 192.168.30.254 255.255.255.0
[huawei-vlanif30]inter vlan 40
[huawei-vlanif40]ip address 192.168.40.254 255.255.255.0
[huawei-vlanif40]q
[huawei]inte gi 0/0/1
[huawei-gigabitethernet0/0/1]port link-type trunk
[huawei-gigabitethernet0/0/1]port trunk allow-pass vlan all
[huawei-gigabitethernet0/0/1]q
[huawei]inter vlan 10
[huawei-vlanif10]vrrp vrid 10 virtual-ip 192.168.10.250
[huawei-vlanif10]vrrp vrid 10 priority 150
[huawei-vlanif10]vrrp vrid 10 track inter gi 0/0/2 reduced 100
[huawei-vlanif10]inter vlan 20
[huawei-vlanif20]vrrp vrid 20 virtual-ip 192.168.20.250
[huawei-vlanif20]vrrp vrid 20 priority 150
[huawei-vlanif20]vrrp vrid 20 track inter gi0/0/2 reduced 100
驗證:實現全網通
開啟 debug
terminal monito
terminal debugging
debugging ip icmp
sys[sw1]info-center console channel monitor
華為認證 華為和Cisco路由協議預設優先順序
華為路由器規定的路由協議優先順序為 路由協議 優先順序 direct 0 ospf 10 isis 15 static 60 igrp 80 rip 100 ospfase 150 bgp 170 cisco 路由器規定的路由協議優先順序為 路由協議 優先順序 direct 0 static 1 e...
華為修改優先順序命令 華為交換機優先順序配置
第5章 qos配置 5.1 qos簡介 s2000b系列乙太網交換機實現簡單的qos功能。乙太網交換機上每個埠可以具有兩個優先順序 高優先順序 和低優先順序。通過設定埠的優先順序,在網路擁塞發生時,系統將首先丟棄低優先順序埠上的報文,從而 保證高優先順序報文的傳送。5.2 qos配置 qos配置包括...
華為修改優先順序命令 華為配置命令大全
quidway ethernet0 1 stpcost200 設定交換機埠的花費 quidway link aggregatione0 1toe0 4ingress both 埠的聚合 quidway undolink aggregatione0 1 all 始埠為通道號 switcha vlanx...