常用及常見路由器的命令
作者:佚名 時間:2012-03-03 分享到:
1)基本路由器的查看命令
show version 查看版本及引導信息
show ip route 查看路由信息
show startup-config 查看路由器備份配置(開機設置)
show running-config 查看路由器妝肖配置(運行設置)
show interface 查看路由器接口狀態
show flash 查看路由器ios文件
2)查看路由配置命令
config terninal 進入全局配置模式
hostname 標識名 標記路由器
interface 接口號 進入接口配置模式
line con 0 或 line vty 0 4 或進入線路配置模式
enable password或enable secret 口令配置口令
no shutdown 啟動端口
ip address 網絡地址 掩碼 配置 ip 地址
3)ip路由
a.靜態路由
ip routing 查看靜態路由
ip route 目標網絡號 掩碼 端口號 配置靜態路由
b.默認路由
ip default-network 網絡號 配置缺省路由
c.rip配置
router rip 設置路由協議為rip
network 網絡號配置所連接的網絡
show ip route 查看路由記錄
show ip protocol 查看路由協議