基础
交换
路由
stp mode { mstp | stp | rstp } 配置stp 模式
[Huawei]stp mode ? mstp Multiple Spanning Tree Protocol (MSTP) mode rstp Rapid Spanning Tree Protocol (RSTP) mode stp Spanning Tree Protocol (STP) mode |
缺省情况下华为X7系列交换机默认运行MSTP 模式。
stp priority { 0-61440 } 配置优先级
[Huawei]stp priority ? INTEGER<0-61440> Bridge priority, in steps of 4096 [Huawei]stp root ? |
缺省情况下,值为32768,步长为4096。
stp root { primary | secondary } 设置根/备份桥
[Huawei]stp root ? |
stp pathcost-standard { dot1d-1998 | dot1t | legacy } 配置路径开销值的标准
[Huawei]stp pathcost-standard ? |
stp cost { }
[Huawei]interface e0/0/1 [Huawei-Ethernet0/0/1]stp cost ? [Huawei-Ethernet0/0/1]stp cost ? |
可以看出华为使用 dot1t / IEEE 802.1T 作为默认的路径开销计算标。
display stp 查看验证配置
[Huawei]dis stp
|
ip route-static ip-address { mask | mask-length } interface-type interface-number [ nexthop-address ]
[Huawei]ip route-static ? IP_ADDR<X.X.X.X> Destination IP address default-preference Preference-value for IPv4 static-routes selection-rule Selection rule vpn-instance VPN-Instance route information [Huawei]ip route-static 192.168.1.0 ? INTEGER<0-32> Length of IP address mask IP_ADDR<X.X.X.X> IP address mask [Huawei]ip route-static 192.168.1.0 255.255.0.0 ? IP_ADDR<X.X.X.X> Gateway address Ethernet Ethernet interface NULL NULL interface vpn-instance Destination VPN-Instance for Gateway address [Huawei]ip route-static 192.168.1.0 255.255.0.0 e0/0/1 ? IP_ADDR<X.X.X.X> Gateway address description Add or delete description of unicast static route ldp-sync LDP-Static route synchronization permanent Specifies route permanent preference Specifies route preference tag Specifies route tag track Specify track object <cr> Please press ENTER to execute command |
文章评论(0)