博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
交换机的基本原理配置(二)
阅读量:6854 次
发布时间:2019-06-26

本文共 2599 字,大约阅读时间需要 8 分钟。

1、设置进入特权模式的密码(加密形式)

在全局模式下输入命令 enable secret 密码 即设置完成。
jingshihai-01#jingshihai-01#config terminalEnter configuration commands, one per line.  End with CNTL/Z.jingshihai-01(config)#enable secret 111111jingshihai-01(config)#endjingshihai-01#%SYS-5-CONFIG_I: Configured from console by consolejingshihai-01#show running-config Building configuration...Current configuration : 1204 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!enable secret 5 $1$mERr$gsT/Ol5GvccluWxu2cQ1I. (加密密码)!!

2、如果同时设置了明文密码和加密密码,那么加密密码起作用

(即:加密密码的优先级大于明文密码)

3、配置console密码

在全局模式下输入命令 line console 0 回车,在输入 password 123456 回车,在输入 login 即可
jingshihai-01#config terminjingshihai-01#config terminal Enter configuration commands, one per line.  End with CNTL/Z.jingshihai-01(config)#line console 0jingshihai-01(config-line)#password 123456jingshihai-01(config-line)#loginjingshihai-01(config-line)#endjingshihai-01#show running-config Building configuration...Current configuration : 1228 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!line con 0password 999999logging synchronousloginjingshihai-01#jingshihai-01#exit
jingshihai-01 con0 is now available
Press RETURN to get started.User Access VerificationPassword: (输入console密码)jingshihai-01>enablePassword:  (输入特权模式密码)jingshihai-01#

4、配置管理用IP地址与网关

console不是唯一的管理手段,有时还需要通过网络对设备进行远程操作。
每台交换机只能配置一个管理IP地址和网关,且只能在VLAN 1中配置。
在全局模式下,输入命令 interface vlan 1 进入vlan1中;然后输入管理IP地址和网关,命令为 ip address 192.168.1.1 255.255.255.0 回车后输入 no shutdown (激活) 配置完成。
jingshihai-01#jingshihai-01#config terminalEnter configuration commands, one per line.  End with CNTL/Z.jingshihai-01(config)#interface vlan 1jingshihai-01(config-if)#ip address 192.168.1.1 255.255.255.0jingshihai-01(config-if)#no shutdownjingshihai-01(config-if)#%LINK-5-CHANGED: Interface Vlan1, changed state to upjingshihai-01(config-if)#endjingshihai-01#%SYS-5-CONFIG_I: Configured from console by consolejingshihai-01#show running-jingshihai-01#show running-config Building configuration...Current configuration : 1241 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!interface Vlan1  ip address 192.168.1.1 255.255.255.0!
通过如上可以查看输入的命令是否有问题,也可以通过如下命令查看状态:
jingshihai-01# show interface vlan 1Vlan1 is up, line protocol is down  Hardware is CPU Interface, address is 00d0.ff07.0d95 (bia 00d0.ff07.0d95)  Internet address is 192.168.1.1/24  MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec

转载地址:http://effyl.baihongyu.com/

你可能感兴趣的文章
Webrtc入门——基于阿里云ubuntu 最新webrtc Android平台编译详细说明
查看>>
iOS 图文混排 链接 可点击
查看>>
poj 1240
查看>>
UI设计时要注意的几个方面
查看>>
SVN 更新失败
查看>>
kmp循环节
查看>>
又撸了一上午的番
查看>>
学习笔记:Oracle 12C 数据非常规恢复工具bbed的使用说明
查看>>
保留CAAnimation执行后的效果
查看>>
第三方登录(QQ登录)开发流程详解
查看>>
MySQL,Oracle,PostgreSQL,DB2,mongoDB,Hive, SAP HANA 数据库web维护客户端管理工具
查看>>
V-rep学习笔记:机器人模型创建1—模型简化
查看>>
cocos2dx simplegame 2 添加不同的怪物
查看>>
ios 开发中经常用到的 栏控件(bar)
查看>>
poj 1094 Sorting It All Out
查看>>
配置Instantclient
查看>>
【转】程序员必读书单 1.0
查看>>
编译安装 nginx的http_stub_status_module监控其运行状态
查看>>
AtCoder Regular Contest 069 D
查看>>
关于sql server批量插入与更新两种解决方案
查看>>