文档详情

交换机路由器配置命令.ppt

发布:2016-03-20约2.24千字共13页下载文档
文本预览下载声明
用户模式 switch 特权模式 switch# 全局模式 switch(config)# 端口模式 switch(config-if)# VLAN配置模式 switch(config-vlan)# Exec模式:交换机信息查看,简单命令测试。 特权模式:查看、管理交换机的配置信息,测试、调试。 1.用户模式进入特权模式 switchenable switch# 2.返回用户模式 switch#exit switch 或 switch#disable switch 配置模式: 1.全局配置模式switch(config)#配置交换机整体参数 switch#configure terminal switch(config)#exit Switch# 2.接口配置模式switch(config-if)#配置交换机接口参数 switch(config)#interface fastethernet 0/1 switch(config-if)#exit switch(config)# 配置模式: 3. VLAN配置模式switch(config-vlan)# switch(config)#vlan 1 switch(config-vlan)#exit switch(config)# 4.从子模式下直接返回特权模式 switch(config-if)#end switch# 获得帮助 switch#? 命令简写 命令自动补齐(TAB) 使用历史命令 使用上下箭头 编辑快捷键 编辑键 命令功能 Ctrl+A 光标移动到命令行开头 Ctrl+E 光标移动到命令行末尾 Ctrl+P 重用前一条命令 Ctrl+N 重用下一条命令 Esc+F 光标前移一个词 Esc+B 光标后移一个词 Ctrl+F 光标前移一个字母 Ctrl+B 光标后移一个字母 显示交换机硬件及软件信息 switch#show version 显示当前运行的配置参数 switch#show running-config 显示接口配置参数 switch#show interfaces 显示MAC地址表 switch#show mac-address-table 配置交换机主机名 switch(config)# hostname hpu 保存交换机主机配置 switch#copy running-config startup-config 清空交换机当前配置,恢复出厂值 switch#erase startup-config 重新启动交换机 switch#reload 交换机配置 switch(config)# line vty 0 进入line模式 switch(config-line)# password hpu 配置远程登录密码 switch(config)# login switch(config)# end 交换机配置 switch(config)#enable password hpu123 配置特权模式密码 switch(config)#enable secret hpu123 配置远程登录密码 switch(config)#int vlan1 配置交换机管理IP地址 switch(config-if)#no shutdown switch(config-if)#ip address 192.168.1.100 255.255.255.0 switch(config-if)#end 1.配置远程登录密码 1.1配置远程登录密码 1.2配置特权模式密码 注意:两个密码缺一不可 2.配置管理IP 二层交换机的管理IP只能有一个生效。 默认情况下给VLAN1配置IP,因为交换机所有接口默认都属于vlan1。 给不同vlan配置IP 地址时 ,IP地址不能在同一网段。 例:vlan192.168.1.1 vlan192.168.1.2(不允许) 创建vlan 1. switch(config)#vlan 10 2. switch#vlan database swit
显示全部
相似文档