1. 程式人生 > >02路由器基本配置命令

02路由器基本配置命令

路由器基本配置命令

基本命令:

Enable  進入特權模式

Configure terminal  進入全域性配置模式

Hostname name    配置主機名

Enable secret password    改管理員密碼(重新進入時需要輸入)

Show running-config   顯示路由器配置資訊

Copy running-config startup-config   儲存路由器配置資訊

 

配置快速乙太網介面:

Ip routing

啟用IP路由

Interface Fastethernet 0/0 進入0號埠進行配置模式

Interface Fastethernet 0/1-10 進入配置1-10埠組模式

IP address 192.168.1.100 255.255.255.0 為介面指定IP地址和子網掩碼

No ip address   刪除該介面的IP地址

description  新增介面描述

shutdown   關閉介面

no shutdown   開啟介面

Erease startup  //清空所有配置資訊,恢復出廠設定

 

配置靜態路由:

Ip route 目標網段 子網掩碼 下一跳的IP地址(必須啟動IP路由功能)

設定預設路由:(IP地址由ISP供應商提供)

Ip default-network network-number

Ip route 0.0.0.0 0.0.0.0 default-gateway

Ip route 目標網段 子網掩碼 下一跳的IP地址