华为路由交换命令收集
查看设备日志:
display logbuffer
display trapbuffer
查看接口光模块信息:
display transceiver interface g0/0/1 verbose
查看光模块诊断信息:
display transceiver diagnosis interface GigabitEthernet 0/0/1
查看所有trunk模式接口 :
display trunk resource
查看所有接口模式:
display port vlan active
清除接口配置信息:
clear configuration interface g0/0/1
清除指定接口的ARP:
reset arp interface Vlanif xx
批量创建vlan命令:
vlan batch 2 to 20
关闭二层接口:
interface GigabitEthernet0/0/1
undo portswitch
接口access模式配置:
interface GigabitEthernet0/0/1
port link-type access
port default vlan 2
接口trunk模式配置:
interface GigabitEthernet0/0/1
port link-type trunk
port trunk pvid vlan 3
port trunk allow-pass vlan 3 to 5
接口hybrid模式配置:
interface GigabitEthernet0/0/1
port link-type hybrid
port hybrid pvid vlan 2
port hybrid tagged vlan 2 3
port hybrid untagged vlan 4 5
端口隔离的配置:
port-isolate mode all
interface GigabitEthernet0/0/1
port-isolate enable group 1
MUX VLAN的配置:
vlan 30
mux-vlan
subordinate separate 20
subordinate group 10
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
port mux-vlan enable
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20
port mux-vlan enable
interface GigabitEthernet0/0/3
port link-type access
port default vlan 30
port mux-vlan enable
super vlan的配置:
vlan 100
aggregate-vlan
access-vlan 10 20
interface Vlanif100
ip address 192.168.1.1 255.255.255.0
ip address 192.168.10.1 255.255.255.0 sub
ip address 192.168.20.1 255.255.255.0 sub
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20
vpn-instance的配置:
ip vpn-instance test
ipv4-family
interface GigabitEthernet0/0/1
ip binding vpn-instance test
ip route-static vpn-instance test 0.0.0.0 0.0.0.0 x.x.x.x
查看vpn-instance关联的信息:
dis current-configuration configuration vpn-instance test related
查看vpn-instance关联的接口:
display ip vpn-instance CN2 interface
updating...

浙公网安备 33010602011771号