RGOS 的 CLI 结构接近 Cisco:用户模式 >、特权模式 #、全局配置 (config)#、接口配置 (config-if)#。enable 提权,configure terminal 进入配置,end 回到特权模式。查看用 show,删除配置多用 no。RGOS 不同版本和产品线(交换机、路由器、无线)命令存在差异,以设备版本为准。
reload 会中断转发,恢复出厂或清空启动配置的命令随型号和版本不同,执行前必须备份 show running-config 并确认 Console 可用。保存配置用 write 或 copy running-config startup-config;回滚通常是恢复备份配置或重新加载原启动配置。
enable
configure terminal
hostname EDGE-1
interface GigabitEthernet 0/1
ip address 192.0.2.1 255.255.255.0
no shutdown
end
show running-config
show startup-config
show version
show ip interface brief
show interfaces status
show ip route
show arp
show mac-address-table
show logging
terminal length 0
show running-config | include ip route
show interfaces GigabitEthernet 0/1
show mac-address-table address 0011.2233.4455
copy running-config startup-config
write 或 copy running-config startup-config,重启后丢失。reload 会中断业务;远程操作前确认保存、备份和带外通道。show mac-address-table,与 Cisco 的 show mac address-table 不同。terminal length 0 只影响当前会话,重新登录后可能恢复分页。debug 类命令会加重 CPU 负担,生产环境先限定范围并及时关闭。GigabitEthernet 0/1),脚本拼接时注意引号和格式。合上页面,先回答,再展开对照。
reload 前应做哪些准备?write 或 copy running-config startup-config,具体支持情况以设备版本为准。
小程序版
微信扫码,随时查命令