H3C网络设备配置命令行整理

常用命令:


display current  查看配置


super -----进入特权模式


system-view----进入系统配置模式


retur   ---------退出系统配置模式


interface Ethernet 1/0/1---进入的端口


saved-configuration 交换机flash中保存的下次启动的配置


startup-configuration 交换机下次启动配置文件


interface端口


sysname 为设备命名


password cipher设置密码(密文)


save 保存配置






dhcp server ip-pool   DHCP为每个VLAN提供IP地址。


switchport mode access  这是将交换机端口转换为ACCESS模式的命令,在默认情况下这个命令是不需要的,因为在默认情况下所有的端口就是这个模式,可以直接连接计算机等设备。另外常用的模式是Trunk,用于交换机之间级联传输VLAN信息的。


access  ['ankses] 
trunk   [trank]




switchport access vlan ????????




vlan与端口的关系是什么?
vlan是虚拟局域网的意思。交换机端口默认属于一个组(一个VLAN),当你想把交换机端口划分为多组的时候,就需要建立多个VLAN,并将端口和相应的vlan关联。简单说,端口是vlan的成员。




查看交换机所有端口对应IP:display arp 




display ip interface brie  用来显示三层接口的IP基本配置信息




interface Ethernet0/0/0 指的是以太网端口0下面的子端口0
interface GigabitEthernet1/0/0 指千兆以太网接口  1/0/0表示机器号/槽位号/子接口号




配置与修改h3c设备名称
注:在配置模式system-view下
命令:sysname xxx




配置与修改H3c设备本地telnet 登录用户名与密码
注:在配置模式system-view下
命令:local-user xxx(预设用户名)
      password simple|cipher xxx  配置本地telnet用户   simple(明密)cipher(暗密)




保存:save 使用详解
save         //此种保存只默认保存为Startup.cfg ,系统默认是加载此文件 
The current configuration will be written to the device. Are you sure? [Y/N]:y  
Please input the file name(*.cfg)[cf:/startup.cfg]      //默认保存为cf:/startup.cfg
(To leave the existing filename unchanged, press the enter key):    //回车即可






ip route-static

猜你喜欢

转载自blog.csdn.net/weixin_40178556/article/details/78728477