交换机的基本配置
2016-04-27 18:19
232 查看
交换机的基本配置 |
Switch> 首先看到的是用户模式 Switch>en 输入en(即enable)进入特权模式 Switch#conf t 进入配置模式 Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname sw2960 给交换机命名sw2960(config)#enable secret Cisco 设置特权加密口令sw2960(config)#enable password Cisco 给交换机配置特权管理口令(明码的)sw2960(config)#line consle 0 进入控制台口(RS232)sw2960(config-line)#password Cisco 设置登录口令sw2960(config-line)#login 登录要求口令验证sw2960(config-line)#exit 退出到上级目录 sw2960(config)#line vty 0 4 给交换机开启远程管理 sw2960(config-line)#pass Cisco! 设置远程管理口令 sw2960(config-line)#login 允许远程登陆 sw2960(config-line)#exit 退出到上级目录 sw2960(config)#int vlan 1 进入vlan1 接口 sw2960(config-if)#no shut 开启此接口 1y13w: %LINK-3-UPDOWN: Interface Vlan1, changed state to up 1y13w: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up sw2960(config-if)#ip add 192.168.1.2 255.255.255.0 设置此接口地址 sw2960(config-if)#exit 退出到上一层sw2960(config-if-range)#exit 退出到上一级目录sw2960(config)#show run 查看配置信息 sw2960(config)#end 退到根目录sw2960#write 保存配置4d00h: %SYS-5-CONFIG_I: Configured from console by console Building configuration... [OK] (保存生效) |
相关文章推荐
- 可以恢复flashfxp密码的FlashFXP Password Recovery v1.0.160.2006 汉化版
- You must SET PASSWORD before executing this statement的解决方法
- MYSQL安装时解决要输入current root password的解决方法
- Linux 入门常用命令 password ― 修改密码,改变用户
- mysql 忘记密码,如何重新设置新密码(mysql5.6已测试过OK)
- Mysql常用操作
- ***常规思路
- Oracle listener password encryption
- 如何破解root以及grub密码
- Jenkins进阶系列之——09Publish Over SSH插件
- 自己CA脚本
- 红盟过客提到的 CCIE 必读书籍
- mysql修改密码后phpmyadmin 出现#1045
- openssl安装配置
- Cisco路由器交换机配置命令大全
- indows下mysql忘记root密码的解决方法
- Create User
- Linux用户管理之sudo权限(visudo)
- php篇 重拾自学之路456(自娱自乐)
- SQL SERVER2008 忘記SA密碼怎麼辦