华为Datacom实验

VRP系统基础操作

1、常见文件操作命令

#查看当前目录
pwd
#显示当前目录下的文件信息
dir
#查看文本文件的具体内容
more
more ca_config.ini
#创建新目录
mkdir
#删除目录
rmdir
#删除文件
delete
del xx.cfg
#恢复删除命令
undelete
undel xx.cfg
#清空回收站
reset recycle-bin
#复制文件
copy
#移动文件
move
#重命名
rename

2、基础配置命令

#设备名称命名
sysname xx
#设置系统时钟
clock datetime 11:11 2024-03-01 
#文件保存和另存为
save
save xx.cfg
#查看保存配置
display saved-configuration
dis sa
#查看当前运行的配置
display current-configuration
dis cu
#清除已保存的配置
reset saveed-onfiguration
#查看启动配置
display startup
dis star
#下次重启启动时使用的配置文件
startup saved-configuretion xx.cfg
#重启
reboot

3、查看命令

#查看接口IP简要信息
display ip interface brief
dis ip int br
#查看全局路由表
display ip routing-table
#查看某条路由详细信息
display ip routing-table x.x.x.x verbose
#查看OSPF的概要信息
display ospf brief
#显示OSPF的接口信息
display ospf interface
#显示OSPF的LSDB信息
display ospf lsdb
#显示OSPF中各区域邻居的信息
display ospf peer
#显示OSPF的路由表信息
display ospf routing
#查看交换机的MAC地址表
display mac-address
#查看vlan信息
display vlan
#查看STP接口状态信息
display stp brief
#查看Eth-Trunk的状态信息
display Eth-Trunk
#查看ACL的配置信息
display acl