cisco基础命令
命令大全
router>enable 进入特权模式
router#configure terminal 进入全局配置模式
router(config)#hostname R1 修改主机名
R1(config)#interface g0/1 进入接口
R1(config-if)#ip address 192.168.10.1 255.255.255.0 设置IP
R1(config-if)#no shutdown 开启端口
R1(config-if)#^z Ctrl+z,返回特权模式
R1#show ip interface brief 查看所有接口名称与IP地址
R1#write 保存running-config配置信息
R1#reload 重启路由器
R1#conf t
R1(config)#router ospf 1 进入OSPF路由配置模式
R1(config-router)#network 192.168.10.0 0.0.0.255 area 0 宣告网络192.168.10.0/24到区域0中
R1(config-router)#^z Ctrl+z,返回特权模式
R1#show ip route 查看路由表信息