ccna实验配置个人总结
生活随笔
收集整理的這篇文章主要介紹了
ccna实验配置个人总结
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
| 版權聲明:原創作品,允許轉載,轉載時請務必以超鏈接形式標明文章 原始出處 、作者信息和本聲明。否則將追究法律責任。http://yangkaichun.blog.51cto.com/1058887/238915 |
| 今天花了一個小時, 把上個星期學習的CCNA的配置的一些基本命令總結了一下,雖然還有很多理論地方不是太明白,但還是寫出來了,作為一個學習的開始吧! 一下總結如有錯誤之處希望朋友們給我指正一下,虛心求教! ------------------基本配置------------------------------------ 01.路由器的基本配置: Router>用戶模式 Router>enable用戶進入特權模式 Router#特權模式 Router#configure terminal特權進入全局配置模式 Router(config)#全局配置模式 Router(config)#hostname R1命名 R1(config)#no ip domain-lookup 關閉域名解析模式 R1(config)#line console 0進入控制臺口 R1(config-line)#logging synchronous日志信息同步 R1(config)#interface fastethernet 0/0進入不同的接口 R1(config-if)#ip address 192.168.1.1 255.255.255.0配置IP R1(config-if)#no shutdown開啟接口 R1(config-if)#clock rate 64000? DCE端時鐘配置 show命令都是在特權模式下的 R1(config)#show ip route查看路由表 R1(config)#show running-config查看當前配置 R1(config)#show ip interface brief查看端口配置 R1(config)#copy running-config startup-config當前配置保存為啟動配置 R1(config)#write memory保存 ?? ----------------------------------------------------------------------------- 02.路由協議: ?Static routes/Default Static routes ?RIP ?Eigrp ?ospf ----------------------------------------------------------------------------- Default Static routes R1(config)#ip route 0.0.0.0 0.0.0.0 192.1.12.2缺省路由 R1(config)#ip route 0.0.0.0 0.0.0.0 192.1.21.2 10浮動靜態路由10是管理距離 管理距離應用于協議之間的比較,metric值應用于協議內部之間的比較 Static routes R1(config)#ip route 192.1.2.0 255.255.255.0 192.1.12.2下一跳地址(直連對端地址) R1(config)#ip route 192.1.2.0 255.255.255.0 fastethernet0/0出站接口 ------------------------------------------------------------------------------ 03.RIP R1(config)#router rip開啟rip R1(config-router)#version 2 版本號 R1(config-router)#no auto-summary關閉自動匯總 R1(config-router)#network 11.1.1.1宣告自己loopback端的ip(網段號也可以) R1(config-router)#network 192.1.12.1宣告自己路由器的ip(網段號也可以) 自動匯總和手工匯總都會抑制明細路由,做手工匯總必須先關閉自動匯總。 R1(config)#no router rip刪除rip協議 R1#show ip protocol 查看ip協議 R1#clear ip route * 清空路由表 ------------------------------------------------------------------------------ 04.Erigp R1(config)#router eigrp 1 R1(config-router)#no auto-s R1(config-router)#network 1.0.0.0宣告loopback的ip網段號(ip地址也可以) R1(config-router)#network 192.1.12.0宣告路由器ip網段號(ip地址也可以) R1#show ip eigrp neighbors查看鄰居表 R1#show ip rigrp topolgy查看拓撲表 R1#show ip route eigrp通過eigrp學習到得路由 DUAL算法:后繼,可行距離FD,通告距離AD,可行性條件FC(FD>AD),可行后繼 Eigrp的鄰居表,拓撲表,路由表。 ----------------------------------------------------------------------------- 05.OSPF R1#show ip neighbor查看鄰居表 R1#show ip ospf datebase查看數據庫 R1#show ip ospf interface ethernet1/0查看接口配置 priority優先級? 0-255? 默認為1 R1#(config-if)#ip ospf priority 10 修改優先級為10 R1(config-router)#router-id 11.11.11.11修改id 配置: R1(config)#router ospf 1 R1(config-router)#network 1.1.1.0 0.0.0.255 area 1 R1(config-router)#network 192.1.12.0 0.0.0.255 area 0 R2(config)#router ospf 1 R2(config-router)#network 2.2.2.0 0.0.0.255 area 2 R2(config-router)#network 192.1.12.0 0.0.0.255 area 0 這個配置具體還不清楚 R1(config)#int e1/0 R1(config-if)#ip ospf hello-interval 5修改hello時間 R1(config-if)#ip ospf dead-interval 10修改dead時間 ---------------------------------------------------------------------------- 06.ACL 訪問控制列表 --------------------------------------- telnet設置:????????????????????????? R1(config)#line vty 0???????????????? R1(config-line)#password yangkaichun? --------------------------------------- R1(config)#access-list 1 deny 1.1.1.1 0.0.0.0拒絕1.1.1.1訪問 R1(config)#access-list 1 premit any允許其它的 R1(config)#int e1/0進入端口調用 R1(config-if)#ip access-group 1 in調用ACL R1(config)#access-list 100 deny tcp any any eq telnet 不允許telnet登陸 R1(config)#access-list 100 permit ip any any 允許其它的 R1(config)#int e 1/0進入端口調用 R1(config-if)#ip access-group 100 in R1(config)#access-list 100 deny icmp host 192.1.12.2 host 1.1.1.1 echo拒絕ICMP包 R1(config)#access-list 100 deny tcp any any eq 80(不允許HTTP的進入)把80換成?就可查看端口編號了 本文出自 “看不見的網” 博客,請務必保留此出處http://yangkaichun.blog.51cto.com/1058887/238915 |
轉載于:https://blog.51cto.com/1043847/273505
總結
以上是生活随笔為你收集整理的ccna实验配置个人总结的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Effective C++ 11 在op
- 下一篇: 《WebForm开发系列高级篇》Item