程序员都很懒,你懂的!
- 十年生死两茫茫,写程序,到天亮。
- 千行代码,Bug何处藏。
- 纵使上线又怎样,朝令改,夕断肠。
- 领导每天新想法,天天改,日日忙。
- 相顾无言,惟有泪千行。
- 每晚灯火阑珊处,夜难寐,又加班。
闲话少说,直接上代码:
代码语言:javascript复制
华三交换机操作命令
输入用户名回车,输入密码后回车。再输入sys进入系统模式。
或者输入登录后,输入system-view进入系统模式。
显示/查看vlan
display brief interface
显示vlan列表后,进入6号口命令
interface Eth1/0/6
或者interface et1/0/6
或者interface Ethernet 1/0/6
切换到vlan 200的命令
port access vlan 200
再切换到原理的vlan的命令
undo port access vlan
以上红色字体为实际命令,端口和vlan编号都是以博主所在公司的vlan编号!
其他命令列表:
代码语言:javascript复制
acl Specify acl configuration information
am Access management
apply Specify profile configuration
arp Add static ARP entry
bpdu-tunnel Global Enable tunneling protocol frame
broadcast-suppression Specify the broadcast storm control
burst-mode Specify burst-mode
change Change the unit id of specified unit to a new value
cluster Specify cluster configuration information
command-alias Specify command alias
command-privilege Specify the command level
copy Copy source port configuration to destination port
copyright-info Displaying copyright information
cut Cut connection
delete Delete route information
detect-group Specify detect-group view
dhcp DHCP configuration subcommands
dhcp-security Specify DHCP(Dynamic Host Configuration Protocol)
relay security configuration information
dhcp-server Specify DHCP(Dynamic Host Configuration Protocol)
relay configuration information
dhcp-snooping DHCP snooping
display Display current system information
dldp Specify configuration information of DLDP
dns Specify domain name system
domain Add domain or modify domain attributes
dot1x Specify 802.1X configuration information
end-station Configure ip address of end station
execute Batch Command
fabric Fabric
fabric-port Fabric-port link-type
file Specify file system configuration information
ftm Fabric topology management
ftp Specify FTP server configuration information
ftp-server Specify a source IP
garp Generic Attribute Registration Protocol
giant-frame Giant frame management
gratuitous-arp-learning Gratuitous Arp learning function
gvrp GARP VLAN Registration Protocol
habp Specify HABP configuration information
header Specify the login banner
hwping Specify HWPing test class
hwping-agent Specify HWPing agent task function
hwping-server Specify HWPing server task function
hwtacacs Specify HWTACACS server
icmp Specify ICMP(the Internet Control Message Protocol)
configuration information
igmp-snooping IGMP snooping
info-center Specify information center configuration information
interface Specify the interface configuration view
ip Specify IP(Internet Protocol) configuration
information
irf-fabric IRF feature in fabric
job Schedule a system task
lacp Configure LACP Protocol
link-aggregation Configure a link aggregation group
lldp Link Layer Discovery Protocol(802.1ab)
local-server Specify local RADIUS server configuration
information
local-user Specify local user configuration information
loopback-detection Detect if loopback exists
mac-address Quick notify Arp entry function
mac-authentication Specify MAC authentication configuration information
management-vlan Specify management-vlan
memory Free memory for routing protocols to run normally
mib-style MIB style
mirroring Specify mirroring
mirroring-group Specify mirroring-group
monitor-link Configure Monitor Link
msdp Specify MSDP(Multicast Source Discovery Protocol)
configuration information
msdp-tracert MSDP trace route to source RP
mtracert Trace route to multicast source
multicast Specify multicast configuration information
multicast-source-deny Multicast source port deny
ndp Neighbor discovery protocol
nslookup Query Internet name servers
ntdp Specify NTDP configuration information
ntp-service Specify NTP(Network Time Protocol) configuration
information
ospf Specify OSPF(Open Shortest Path First) configuration
information
packet-filter Filter packets based on acl
patch Patch module
pim Specify PIM(Protocol Independent Multicast)
configuration information
ping Ping function
pki Specify PKI module configuration information
poe Power over Ethernet
poe-profile Poe-profile
port-mac Config port MAC start address
port-security Specify port-security configuration information
protocol-priority Specify protocol-priority configuration information
public-key Specify public-key module configuration information
qos QoS configuration information
qos-profile Specify qos-profile configuration information
queue-scheduler Specify queue scheduling mode and parameters
quit Exit from current command view
radius Specify RADIUS configuration information
resilient-arp Resilient ARP module
return Exit to User View
rip Specify RIP(Routing Information Protocol)
configuration information
rmon Specify RMON
route-policy Specify a route policy
router Configure router information
rsa Specify RSA module configuration information
save Save current configuration
schedule Schedule system task
set Set the unit name of specified unit
sftp Set SFTP service attribute
smart-link Configure Smart Link
snmp-agent Specify SNMP(Simple Network Management Protocol)
configuration information
ssh Specify SSH (secure shell) configuration information
ssh-server Specify a source IP
ssh2 Open a secure shell client connection
ssl Specify SSL (Secure Socket Layer) configuration
information
storm-constrain Port storm-constrain
stp Spanning tree protocol
super Modify super password parameters
sysname Specify system name and the command line prompt
system-guard System-guard module options
system-monitor Specify system-monitor configuration information
tcp Specify TCP(Transmission Control Protocol)
configuration information
telnet Establish one TELNET connection
telnet-server VTY module
tftp Open TFTP connection
tftp-server TFTP Server
time-range Specify time-range configuration information
tracemac Trace MAC function
tracert Trace route function
traffic-priority Specify new priority of the packets
udp-helper UDP HELPER module
undo Cancel current setting
unknown-multicast Unknown multicast
user-interface Configure the user terminal interface
vlan Configure VLAN
vlan-V** Specify vlan-V**
voice Specify voice vlan
vrrp Specify configuration information of VRRP
web-authentication Web-Authentication configuration information
webcache Specify configuration information for webcache
redirection