思科交换机基本配置命令

setup 从命令行进入设置模式,ctrl+c退出
enable 特权模式
disable 退出特权模式
logout 推出控制台
configure terminal或config t 全局配置模式
interface 修改接口配置
interface f0/0.1 创建路由器中的逻辑接口
line 配置用户模式密码
hostname 设置路由器身份
banner 配置旗标

设置密码:
启用密码 enable last-report,,,password,,,secret,,,use-tacacs todd
辅助端口密码 line aux
控制台端口密码 line console 0
telnet密码 line vty
设置安全外壳SSH P164页
exec-timeout 0 * 将控制台EXEC会话的超时时间设置为*秒,设置为0,意味着永不超时,默认为10分钟
logging synchronous 避免因不断出现控制台消息影响输入


description 设置接口描述
查看接口描述 show running-config或show interface

do 能够在配置模式下查看配置和统计信息


配置路由器接口:
interface type number,,,interface type slot/port
启用接口 no shutdown
禁用接口 shutdown
给接口配置IP地址 ip address
使用管道
配置串行接口 clock rate,,,show controllers int,,,bandwidth
copy running-config startup--config 将DRAM(即RAM)中的配置文件复制并保存到NVRAM,可简写为copy run start
show running-config或show startup-config 查看当前配置,可简写为sh run
erase startup-config 删除启动配置
show running-config 验证当前配置
show startup-config 验证路由器下次重启时将使用的配置
show ip interface 显示路由器接口的第三层配置信息
router rip,,,network 将RIP路由选择协议添加到配置中
show ip interface brief 提供路由器借口的摘要信息,包括逻辑地址和状态
show protocols 快速了解每个接口的第1层和第2层的状态以及它使用的IP地址
show controllers 显示有关物理接口本身的信息
no ip domain lookup 关闭域名解析功能,提高相应速度

相关文档
最新文档