2025年华为模拟器查看所有配置命令(华为模拟器常用命令)

华为模拟器查看所有配置命令(华为模拟器常用命令)大家好 这里是 G LAB IT 实验室 今天我们来了解一下思科设备命令 一 思科交换机巡检命令 二 思科交换机基础配置命令 进入特权模式 switch gt enableswitch 进入全局配置模式 switch gt enableswitch configure terminalswit conf 交换机命名 switch gt

大家好,我是讯享网,很高兴认识大家。



大家好,这里是G-LAB IT实验室。

今天我们来了解一下思科设备命令。

一、思科交换机巡检命令

二、思科交换机基础配置命令

# 进入特权模式

# 进入全局配置模式

switch>enable
switch#configure terminal
switch(conf)#

# 交换机命名

switch>enable
switch# configure terminal
switch(conf)# hostname hxsw-001
hxsw-001(conf)#

# 配置使能口令

switch>enable
switch#configure terminal
switch(conf)# hostname hxsw-001
hxsw-001(conf)# enable password cisco

# 配置使能密码

switch>enable
switch#configure terminal
switch(conf)#hostname hxsw-001
hxsw-001(conf)# enble secret ciscolab

# 创建多个VLAN

switch>enable #进入特权模式
switch#vlan data #进入VLAN配置模式
switch(vlan)#vlan 10 name IT #划分VLAN 10,名称为IT
switch(vlan)#vlan 20 name HR #划分VLAN20,名称为HR
switch(vlan)#vlan 30 name FIN #划分VLAN30,名称为FIN
switch(vlan)#vlan 40 name LOG #划分VLAN40,名称为LOG
switch(vlan)#exit

# 设置VLAN1

switch>enable
switch#configure terminal
switch(conf)#hostname hxsw-001
hxsw-001(conf)# interface vlan 1
hxsw-001(conf-if)#ip address 192.168.1.1 255.255.255.0 #配置交换机端口IP和子网掩码
hxsw-001(conf-if)#no shut
hxsw-001(conf-if)#exit
hxsw-001(conf)#ip default-gateway 192.168.254 #设置网关地址


讯享网

# 进入交换机某一个端口

switch>enable
switch#configure terminal
switch(conf)#hostname hxsw-001
hxsw-001(conf)#interface fastehernet 0/1
hxsw-001(conf-if)#

# 查看命令

switch>enable
switch#show version #查看系统中的所有版本信息
show interface vlan 1 #查看交换机有关vlan1的配置信息
show running-configure #查看交换机当前起作用的配置信息
show interface fastethernet 0/1 #查看交换机1接口具体配置和统计信息
show mac-address-table #查看MAC地址表
show mac-address-table aging-time #查看MAC地址表自动老化时间

# 交换机恢复出厂命令

switch>enable
switch#erase startup-configure
switch#reload

# 双工模式设置

switch> enable
switch#configure terminal
switch(conf)#hostname hxsw-001
hxsw-001(conf)# interface fastehernet 0/17
hxsw-001(conf-if)#duplex full/half/auto
#有 full、half、auto三个选项

# cdp相关命令

switch> enable
switch# show cdp #查看设备的cdp全局配置信息
show cdp interface fastethernet 0/1
show cdp traffic #查看有关cdp包的统计信息
show cdp nerghbors #列出与设备相连的cisco设备

# 交换机远程登录设置

switch>enable
switch#configure terminal
switch(conf)#hostname hxsw-001
hxsw-001(conf)#enable password cisco
hxsw-001(conf)#interface fastethernet 0/1
hxsw-001(conf-if)#ip address 192.168.1.1 255.255.255.0
hxsw-001(conf-it)#no shut
hxsw-001(conf-if)#exit
hxsw-001(conf)line vty 0 4 #设置0-4个用户可以telnet远程登录
hxsw-001(conf-line)#password edge #以edge为远程登录的用户密码

主机设置:
IP 192.168.1.2 #主机的IP必须和交换机端口的地址在同一个网络段
metmask 255.255.255.0
gate-way 192.168.1.1 #网关地址是交换机端口地址

运行:
telent 192.168.1.1
进入telnet远程登录界面
password:edge
hxsw-001>en
password:cisco
hxsw-001#

G-LAB IT实验室课程

有计划学习考证。可关注 工 仲 好:IT运维大本营留言

小讯
上一篇 2025-05-17 21:56
下一篇 2025-04-23 16:10

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/141762.html