cisco 路由的基本配置命令
1.配置主机名(全局下)hostname xxx2.配置接口参数(描述、配置IP、掩码、激活)
description zhegejiekoulianjieF0/0ip addr w.x.y.z mask
no shutdow
3.安全参数(口令--特权口令又名使能口令、控制台口令、vty口令、ssh;登录横幅)
enable password ??(明文)
enable secret ??(密文---采用MD5加密算法,不可逆的---加密级别为5)
把明文口令加密--全局配置模式
service password-encryption line console 0
password ciscologin(登录时检查)line vty 0 15(16路Telnet)password ciscologin3N+2K( Name---主机名、域名、用户名;key-用户key、加密key--一对)hostname R1ip domain-name byxusername 11w1 password ciscocrypto key generate rsa加密数据块 1024line vty 0 15transport input ssh/telnet/alllogin localbanner motd #??????????????#
motd:message of the day4.保存配置特权下:write或者copy running-config startup-config
5.查看配置show
show ip interface brief/show ip int b
show interfaces/ show inter
show interface f0/0
show ip route /show ip ro
show running-config /show run
show startup-config/ show st
show version/show ver
show ip arp=show arp6.路由器基本配置(主机名、接口参数)
en
conf t
ho Qingdao
int f0/0
ip add 192.168.3.1 255.255.255.0
no sh
descrip Link to Qingdao LAN1
int f0/1
ip add 192.168.4.1 255.255.255.0
no sh
descrip Link to Qingdao LAN2
int s0/0/0
ip addr 12.0.0.2 255.0.0.0
clock rate 64000
no sh
descrip Link to Yantai7.控制台口令-----console口口令
lin con 0
pass cisco
login
telnet口令---vty口令
lin v 0 4
pass cisco
logi
口令加密
service password-encryption
特权口令
enabl sec cisco
8.SSH-- 安全的telnetip domain-name yantai.qingdao
username byx pass cisco
username 11w1 pass 123
username ccna pass 123
crypto key generate rsa
1024
line vty 0 4
transport input all
login local9.DHCP地址池
ip dhcp pool LAN1
network 192.168.3.0 255.255.255.0
default-router 192.168.3.1
ip dhcp pool LAN2
network 192.168.4.0 255.255.255.0
default-router 192.168.4.1以上仅是个人学习笔记总结,如有错误的地方,烦扰指正!
看帖回帖是美德!:lol 爱护环境,人人有病。 有道理。。。 .其实我是一个天才,可惜天妒英才! 好好 学习了 确实不错 所有刻骨铭心的爱都灵魂游离于床上的瞬间!
页:
[1]