华为操作命令

2016年4月14日 0 条评论 2.13k 次阅读 0 人点赞

基础

交换

stp

路由

ip route-static

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 ?
  primary    Primary root switch
  secondary  Secondary root switch

缺省情况下,值为32768,步长为4096。

stp root { primary | secondary } 设置根/备份桥

[Huawei]stp root ?
  primary    Primary root switch
  secondary  Secondary root switch


stp pathcost-standard { dot1d-1998 | dot1t | legacy } 配置路径开销值的标准

[Huawei]stp pathcost-standard ?
  dot1d-1998  IEEE 802.1D-1998
  dot1t       IEEE 802.1T
  legacy      Legacy


stp cost { }

[Huawei]interface e0/0/1
[Huawei-Ethernet0/0/1]stp cost ?
  INTEGER<1-200000000>  Port path cost
[Huawei-Ethernet0/0/1]stp pathcos dot1d-1998

[Huawei-Ethernet0/0/1]stp cost ?
  INTEGER<1-65535>  Port path cost
[Huawei-Ethernet0/0/1]stp path legacy

[Huawei-Ethernet0/0/1]stp cost ?
  INTEGER<1-200000>  Port path cost

可以看出华为使用 dot1t / IEEE 802.1T 作为默认的路径开销计算标。

display stp 查看验证配置

[Huawei]dis stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge         :4096 .4c1f-cc00-7ae3
Config Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :4096 .4c1f-cc00-7ae3 / 0
CIST RegRoot/IRPC   :4096 .4c1f-cc00-7ae3 / 0
CIST RootPortId     :0.0
BPDU-Protection     :Disabled
TC or TCN received  :0
TC count per hello  :0
STP Converge Mode   :Normal 
Time since last TC  :0 days 0h:0m:0s
Number of TC        :0

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 



Sevenfal

这个人太懒什么东西都没留下

文章评论(0)