A-A+

一些cisco路由器常用的基本配置命令

2015年11月23日 站长资讯 暂无评论

1.配置主机名(全局下)

hostname xxx

2.配置接口参数(描述、配置IP、掩码、激活)

description zhegejiekoulianjieF0/0

ip addr w.x.y.z mask

no shutdow

3.安全参数(口令--特权口令又名使能口令、控制台口令、vty口令、ssh;登录横幅)

enable password ??(明文)

enable secret ??(密文---采用MD5加密算法,不可逆的---加密级别为5)

把明文口令加密--全局配置模式

  1. service password-encryption line console 0  
  2. password cisco  
  3. login(登录时检查)  
  4. line vty 0 15(16路Telnet)  
  5. password cisco  
  6. login  
  7. 3N+2K( Name---主机名、域名、用户名;key-用户key、加密key--一对)  
  8. hostname R1  
  9. ip domain-name byx  
  10. username 11w1 password cisco  
  11. crypto key generate rsa  

加密数据块 1024

line vty 0 15

transport input ssh/telnet/all

login local

banner motd #??????????????#

motd:message of the day

4.保存配置特权下:

write或者copy running-config startup-config

5.查看配置show

  1. show ip interface brief/show ip int b  
  2. show interfaces/ show inter  
  3. show interface f0/0  
  4. show ip route /show ip ro  
  5. show running-config /show run  
  6. show startup-config/ show st  
  7. show version/show ver  
  8. show ip arp=show arp  

6.路由器基本配置(主机名、接口参数)

  1. en  
  2. conf t  
  3. ho Qingdao  
  4. int f0/0  
  5. ip add 192.168.3.1 255.255.255.0   
  6. no sh  
  7. descrip Link to Qingdao LAN1  
  8. int f0/1  
  9. ip add 192.168.4.1 255.255.255.0   
  10. no sh  
  11. descrip Link to Qingdao LAN2  
  12. int s0/0/0  
  13. ip addr 12.0.0.2 255.0.0.0  
  14. clock rate 64000  
  15. no sh  
  16. descrip Link to Yantai  

7.控制台口令-----console口口令

  1. lin con 0  
  2. pass cisco  
  3. login  
  4. telnet口令---vty口令  
  5. lin v 0 4  
  6. pass cisco  
  7. logi  
  8. 口令加密  
  9. service password-encryption  
  10. 特权口令  
  11. enabl sec cisco  

8.SSH-- 安全的telnet

  1. ip domain-name yantai.qingdao  
  2. username byx pass cisco  
  3. username 11w1 pass 123  
  4. username ccna pass 123  
  5. crypto key generate rsa  
  6. 1024  
  7. line vty 0 4  
  8. transport input all  
  9. login local  

9.DHCP地址池

  1. ip dhcp pool LAN1  
  2. network 192.168.3.0 255.255.255.0  
  3. default-router 192.168.3.1  
  4. ip dhcp pool LAN2  
  5. network 192.168.4.0 255.255.255.0  
  6. default-router 192.168.4.1  

以上仅是个人学习笔记总结,如有错误的地方,烦扰指正!

标签:

给我留言