一、系统管理类
①查看系统信息
display version 查看设备版本信息
display current-configuration 查看当前运行配置
display saved-configuration 查看已保存配置
display device 查看硬件状态(CPU/内存)
display clock 显示系统时间②设备配置与管理
sysname R1(修改设备名称)
save(保存配置)
reboot(重启设备)
delete(删除Flash中配置)
reset saved-configuration(清除已保存配置)
set factory-configuration from default(恢复出厂配置)③用户与权限
local-user admin password irreversible-cipher Admin@2025(创建加密用户)
local-user admin service-type terminal(设置用户服务类型)
local-user admin privilege level 15(设置用户权限等级)
super password 123456(设置特权密码)二、接口配置类
①接口基础配置
interface GigabitEthernet0/0/1 进入接口视图
ip address 192.168.1.1 24 配置IP地址及子网掩码
undo shutdown 启用接口
shutdown 关闭接口
description [描述] 添加接口描述②子接口与VLAN
interface GigabitEthernet0/0/1.10 创建子接口
dot1q termination vid 10 配置子接口关联VLAN
arp broadcast enable 启用ARP广播③链路协议
interface Serial0/0/0(进入串口视图)
link-protocol ppp(封装PPP协议)
ppp authentication-mode chap(配置CHAP认证)④接口状态查看
display interface GigabitEthernet0/0/1 查看接口详细信息
display ip interface brief 查看接口IP摘要三、路由协议类
①静态路由
ip route-static 10.0.0.0 255.255.255.0 192.168.1.2 配置静态路由
display ip routing-table 查看路由表②动态路由协议
RIP配置:
rip 1 启用RIP进程
network 192.168.1.0 宣告直连网段
version 2 启用RIPv2OSPF配置:
ospf 1 启用OSPF进程
area 0 进入骨干区域
network 192.168.1.0 0.0.0.255 宣告网段(反掩码格式)四、安全与管理类
①访问控制
user-interface vty 0 4 进入虚拟终端视图
authentication-mode password 设置密码认证模式
set authentication password cipher [密码] 配置远程登录密码②ACL配置
acl 2000 创建基本ACL
rule permit source 192.168.1.0 0.0.0.255 允许指定网段
traffic-filter inbound acl 2000 应用ACL到接口③日志与诊断
info-center enable 启用日志功能
debugging all 开启所有调试信息
undo debugging all 关闭调试信息五、诊断与维护类
①连通性测试
ping 192.168.1.1 测试网络连通性
tracert 192.168.1.1 追踪路径②信息诊断
display fib 查看转发信息库
display arp 查看ARP表
display mac-address 查看MAC地址表六、高级功能类
①NAT配置
nat address-group 1 202.100.1.10 202.100.1.20 创建地址池
nat outbound 2000 address-group 1 关联ACL与地址池②DHCP配置
dhcp enable 启用DHCP服务
dhcp select interface 接口启用DHCP服务器
dhcp server dns-list 8.8.8.8 配置DNS服务器③生成树协议(STP)
stp enable(启用STP)
stp disable(关闭指定接口的STP)六、高级功能类
①时间同步
clock datetime 10:00:00 2025-04-27(手动设置时间)②服务管理
info-center console debugging(日志输出到控制台)
info-center monitor debugging(日志输出到远程终端)