h3c 基本配置
#名字,时间配置
sysname R1
clock timezone GMT add 8
clock timezone UTC add 8
clock datetime 9:30:20 2001/02/08
#
-rw- 47646 Feb 08 2001 17:38:37 #清除保存的配置文件
reset saved-configuration
copy
<R1>dir
Directory of flash:/
0
drw-
- Dec 25 2009 19:34:36
logfile
1
-rw-
1363 Feb 08 2001 18:10:24
2
-rw-
47646 Feb 08 2001 17:38:37
3
-rw-
1363 Feb 08 2001 18:10:40
2540 KB total (2448 KB free) #设置下次启动配置文件 <R1>startup saved-configuration
Please wait Done!
<R1>dis startup
Current startup saved-configuration file: flash:/
Next startup saved-configuration file: flash:/ <R1>
#利用 tftp 备份和还原配置文件 backup startup-configuration to xxxx restore startup-configuration from xxxx
startup-conf=save-conf running-config=curr-conf
<R1>tftp ?
get Download file from remote TFTP server
put Upload local file to remote TFTP server
sget Download securely from remote TFTP server [R1-Ethernet0/4/0]port link-mode ?
bridge Switch to layer2 ethernet route Switch to layer3 ethernet #设置启动镜像 boot-loader file flash:/ reboot
schedule reboot at 11:11
#打开调试
terminal debugging
un deb all
#配置vlan,并把端口加入vlan
[SW1]vlan 30
[SW1-vlan30]port Ethernet 0/4/5 to Ethernet 0/4/7 #trunk 配置
int e0/4/2
port link-type trunk
port trunk permit vlan all
port trunk pvid vlan xxx //native vlan
h3c 基本配置方法 来自淘豆网m.daumloan.com转载请标明出处.