久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

思科模擬器路由器配置命令有哪些

201次閱讀
沒有評論

共計 4116 個字符,預(yù)計需要花費 11 分鐘才能閱讀完成。

本文丸趣 TV 小編為大家詳細介紹“思科模擬器路由器配置命令有哪些”,內(nèi)容詳細,步驟清晰,細節(jié)處理妥當(dāng),希望這篇“思科模擬器路由器配置命令有哪些”文章能幫助大家解決疑惑,下面跟著丸趣 TV 小編的思路慢慢深入,一起來學(xué)習(xí)新知識吧。

思科模擬器路由器配置命令:

1、路由器口令設(shè)置:

router enable 進入特權(quán)模式

router#config terminal 進入全局配置模式

router(config)#hostname 設(shè)置交換機的主機名

router(config)#enable secret xxx 設(shè)置特權(quán)加密口令

router(config)#enable password xxb 設(shè)置特權(quán)非密口令

router(config)#line console 0 進入控制臺口

router(config-line)#line vty 0 4 進入虛擬終端

router(config-line)#login 要求口令驗證

router(config-line)#password xx 設(shè)置登錄口令 xx

router(config)#(Ctrl+z) 返回特權(quán)模式

router#exit 返回命令

2、路由器配置:

router(config)#int s0/0 進入 Serail 接口

router(config-if)#no shutdown 激活當(dāng)前接口

router(config-if)#clock rate 64000 設(shè)置同步時鐘

router(config-if)#ip address 設(shè)置 IP 地址

router(config-if)#ip address second 設(shè)置第二個 IP

router(config-if)#int f0/0.1 進入子接口

router(config-subif.1)#ip address 設(shè)置子接口 IP

router(config-subif.1)#encapsulation dot1q 綁定 vlan 中繼協(xié)議

router(config)#config-register 0x2142 跳過配置文件

router(config)#config-register 0x2102 正常使用配置文件

router#reload 重新引導(dǎo)

3、路由器文件操作:

router#copy running-config startup-config 保存配置

router#copy running-config tftp 保存配置到 tftp

router#copy startup-config tftp 開機配置存到 tftp

router#copy tftp flash: 下傳文件到 flash

router#copy tftp startup-config 下載配置文件

ROM 狀態(tài):

Ctrl+Break 進入 ROM 監(jiān)控狀態(tài)

rommon confreg 0x2142 跳過配置文件

rommon confreg 0x2102 恢復(fù)配置文件

rommon reset 重新引導(dǎo)

rommon copy xmodem: flash: 從 console 傳輸文件

rommon IP_ADDRESS=10.65.1.2 設(shè)置路由器 IP

rommon IP_SUBNET_MASK=255.255.0.0 設(shè)置路由器掩碼

rommon TFTP_SERVER=10.65.1.1 指定 TFTP 服務(wù)器 IP

rommon TFTP_FILE=c2600.bin 指定下載的文件

rommon tftpdnld 從 tftp 下載

rommon dir flash: 查看閃存內(nèi)容

rommon boot 引導(dǎo) IOS

4、靜態(tài)路由:

ip route 命令格式

router(config)#ip route 2.0.0.0 255.0.0.0 1.1.1.2 靜態(tài)路由舉例

router(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2 默認路由舉例

5、動態(tài)路由:

router(config)#ip routing 啟動路由轉(zhuǎn)發(fā)

router(config)#router rip 啟動 RIP 路由協(xié)議。

router(config-router)#network 設(shè)置發(fā)布路由

router(config-router)#negihbor 點對點幀中繼用。

6、幀中繼命令:

router(config)#frame-relay switching 使能幀中繼交換

router(config-s0)#encapsulation frame-relay 使能幀中繼

router(config-s0)#fram-relay lmi-type cisco 設(shè)置管理類型

router(config-s0)#frame-relay intf-type DCE 設(shè)置為 DCE

router(config-s0)#frame-relay dlci 16

router(config-s0)#frame-relay local-dlci 20 設(shè)置虛電路號

router(config-s0)#frame-relay interface-dlci 16

router(config)#log-adjacency-changes 記錄鄰接變化

router(config)#int s0/0.1 point-to-point 設(shè)置子接口點對點

router#show frame pvc 顯示永久虛電路

router#show frame map 顯示映射

7、基本訪問控制列表:

router(config)#access-list permit|deny

例 1:

router(config)#access-list 1 deny host 10.65.1.1

router(config)#access-list 1 permit any

router(config)#int f0/0

router(config-if)#ip access-group 4 in

例 2:

router(config)#access-list 4 permit 10.8.1.1

router(config)#access-list 4 deny 10.8.1.0 0.0.0.255

router(config)#access-list 4 permit 10.8.0.0 0.0.255.255

router(config)#access-list 4 deny 10.0.0.0 0.255.255.255

router(config)#access-list 4 permit any

router(config)#int f0/1

router(config-if)#ip access-group 4 in

擴展訪問控制列表:

access-list permit|deny icmp [type]

access-list permit|deny tcp [port]

例 1:

router(config)#access-list 101 deny icmp any 10.64.0.2 0.0.0.0 echo

router(config)#access-list 101 permit ip any any

router(config)#int s0/0

router(config-if)#ip access-group 101 in

例 2:

router(config)#access-list 102 deny tcp any 10.65.0.2 0.0.0.0 eq 80

router(config)#access-list 102 permit ip any any

router(config)#interface s0/1

router(config-if)#ip access-group 102 out

刪除訪問控制例表:

router(config)#no access-list 102

router(config-if)#no ip access-group 101 in

路由器的 nat 配置

Router(config-if)#ip nat inside 當(dāng)前接口指定為內(nèi)部接口

Router(config-if)#ip nat outside 當(dāng)前接口指定為外部接口

Router(config)#ip nat inside source static [p] 私有 IP 公網(wǎng) IP
[port]

Router(config)#ip nat inside source static 10.65.1.2 60.1.1.1

Router(config)#ip nat inside source static tcp 10.65.1.3 80 60.1.1.1 80

Router(config)#ip nat pool p1 60.1.1.1 60.1.1.20 255.255.255.0

Router(config)#ip nat inside source list 1 pool p1

Router(config)#ip nat inside destination list 2 pool p2

Router(config)#ip nat inside source list 2 interface s0/0 overload

Router(config)#ip nat pool p2 10.65.1.2 10.65.1.4 255.255.255.0 type
rotary

Router#show ip nat translation

rotary 參數(shù)是輪流的意思,地址池中的 IP 輪流與 NAT 分配的地址匹配。

overload 參數(shù)用于 PAT 將內(nèi)部 IP 映射到一個公網(wǎng) IP 不同的端口上。

外部網(wǎng)關(guān)協(xié)議配置

routerA(config)#router bgp 100

routerA(config-router)#network 19.0.0.0

routerA(config-router)#neighbor 8.1.1.2 remote-as 200

配置 PPP 驗證:

RouterA(config)#username password

RouterA(config)#int s0

RouterA(config-if)#ppp authentication {chap|pap}

8、路由器子接口封裝為 8021Q(補充)

Encapsulation dot1q 2 封裝類型設(shè)置為 802.1Q,2 是子接口號標(biāo)識,這里是示范,可以隨意設(shè)置。

讀到這里,這篇“思科模擬器路由器配置命令有哪些”文章已經(jīng)介紹完畢,想要掌握這篇文章的知識點還需要大家自己動手實踐使用過才能領(lǐng)會,如果想了解更多相關(guān)內(nèi)容的文章,歡迎關(guān)注丸趣 TV 行業(yè)資訊頻道。

正文完
 
丸趣
版權(quán)聲明:本站原創(chuàng)文章,由 丸趣 2023-07-21發(fā)表,共計4116字。
轉(zhuǎn)載說明:除特殊說明外本站除技術(shù)相關(guān)以外文章皆由網(wǎng)絡(luò)搜集發(fā)布,轉(zhuǎn)載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 河北省| 巴彦淖尔市| 于都县| 崇明县| 安丘市| 上饶市| 北辰区| 湘阴县| 洪洞县| 红桥区| 德兴市| 绥宁县| 永兴县| 渝中区| 宜昌市| 柘城县| 乌鲁木齐市| 攀枝花市| 名山县| 上犹县| 大邑县| 邵武市| 佛教| 平阳县| 呈贡县| 融水| 宣武区| 清流县| 常宁市| 丹寨县| 赫章县| 台南县| 汤原县| 龙口市| 南平市| 湾仔区| 宁夏| 苍溪县| 砚山县| 荔浦县| 松滋市|