cisco路由器配置

2021-07-24 08:53:29 字數 1223 閱讀 3541

cisco路由器配置的幾個常用命令:

router>enable //進入特權模式

router#conf t //進入配置模式

router(config)#int fa0/0 //進入fa0/0介面

router(config-if)#ip add 192.168.1.1 255.255.255.0 //給fa0/0介面配置ip位址

router(config-if)#no sh //啟動該介面

router(config-if)#exit //退出fa0/0介面

router(config)#router rip //配置rip協議

router(config-router)#network 192.168.1.0 //配置rip協議位址

router(config)#access-list 101 permit icmp host 192.168.1.1 host 192.168.2.1 //訪問控制列表icmp

router(config)#access-list 101 permit tcp host 192.168.1.1 host 192.168.2.1 eq www //訪問控制列表www

router(config)#access-list 101 permit tcp host 192.168.1.1 host 192.168.2.1 eq ftp //訪問控制列表ftp

router(config)#access-list 101 permit tcp host 192.168.1.1 host 192.168.2.1 eq 53 //訪問控制列表dns

router(config)#access-list 101 permit udp host 192.168.1.1 host 192.168.2.1 eq 53 //訪問控制列表dns

router(config-if)#ip access-group 101 in //訪問控制列表應用

router(config)#line console 0 //進入控制埠0

router(config-line)#password con-pswd //設定控制密碼

router(config-line)#login //啟用控制密碼

router(config)#enable password en-pswd //設定全域性密碼

router(config)#service password-encryption //密碼加密儲存

CISCO路由器DHCP 配置

實驗拓撲 基本配置 r5充當dhcp 伺服器 ip dhcp pool vlan146 network 155.1.146.0 24 default router 155.1.146.4 dns 202.106.46.151 exit ip dhcp excluded address 155.1.1...

CISCO路由器配置基礎 3

4 常用廣域網協議的配置 常用廣域網協議主要有高階資料鏈路控制協議 hdlc 綜合服務數字網 isdn 點對點協議 ppp 分組交換協議 x.25 和幀中繼 frame relay 等。路由器的串列埠提供與廣域網的連線,但與 isdn 的連線需通過 isdn 介面。廣域網協議的配置方法如下 配置hd...

介紹Cisco路由器

多數cisco路由器產品執行cisco ios作業系統,它是專有作業系統,與linux無關。它的命令集相當大,全部文獻加起來會佔4.5英呎長的書架。我們肯定不會在此詳細介紹cisco ios,但知道一點基本知識還是有好處的。telnet acme gw.acme.com connected to a...