路由器基本配置命令
基本命令:
Enable ?進(jìn)入特權(quán)模式
Configure terminal?進(jìn)入全局配置模式
Hostname name?配置主機(jī)名
Enable secret password?改管理員密碼(重新進(jìn)入時(shí)需要輸入)
Show running-config?顯示路由器配置信息
Copy running-config startup-config?保存路由器配置信息
?APP開(kāi)發(fā)找捌躍網(wǎng)絡(luò)科技
配置快速以太網(wǎng)接口:
Ip routing?啟用IP路由
Interface Fastethernet 0/0?進(jìn)入0號(hào)端口進(jìn)行配置模式
Interface Fastethernet 0/1-10?進(jìn)入配置1-10端口組模式
IP address 192.168.1.100 255.255.255.0?為接口指定IP地址和子網(wǎng)掩碼
No ip address?刪除該接口的IP地址
description?添加接口描述
shutdown?關(guān)閉接口
no shutdown?開(kāi)啟接口
Erease startup? //清空所有配置信息沙合,恢復(fù)出廠設(shè)置
?
配置靜態(tài)路由:
Ip route?目標(biāo)網(wǎng)段?子網(wǎng)掩碼?下一跳的IP地址(必須啟動(dòng)IP路由功能)
設(shè)置默認(rèn)路由:(IP地址由ISP供應(yīng)商提供)
Ip default-network network-number
Ip route 0.0.0.0 0.0.0.0 default-gateway
Ip route目標(biāo)網(wǎng)段?子網(wǎng)掩碼?下一跳的IP地址
轉(zhuǎn)自:http://blog.51cto.com/6854290/2313290