交换机的基本配置

简介:

配置主机名

switch(config)#hostname s1 

禁止路由器查找DNS  

switch(config)#no ip domain-lookup  

配置交换机密码:

switch(config)#enable secret xu  

switch(config)#service password-encryption

配置交换机的管理地址:

switch(config)#interface vlan 1

switch(config-if)#ip address 192.168.1.100 255.255.255.0

switch(config-if)#no shutdown

switch(config)#ip default-gateway 192.168.1.254

配置远程登录Telnet:

switch(config)#line vty 0 15

switch(config-line)#password xu

switch(config-line)#login

配置远程登录ssh:

switch(config)#ip domain-name xu.com    配置域名 

switch(config)#crypto key generate rsa

switch(config)#line vty 0 15

switch(config-line)#login local

switch(config)#uesrname xu secret xu

调试验证:

switch#show ip interface brief

switch#show interfaces fa0/1 switchport

switch#show mac-address-table

router#telnet 192.168.1.100    在路由器上Telnet

router#ssh -l xu 192.168.1.100   在路由器上ssh


查看交换机的ios等

switch#show flash

switch#show running-config















本文转自shangshanyang51CTO博客,原文链接:http://blog.51cto.com/qqran/1631945 ,如需转载请自行联系原作者



相关文章
|
5月前
|
网络性能优化 网络虚拟化 网络架构
配置接口限速示例(盒式交换机)
接口限速简介 接口限速对通过整个端口的全部报文流量速率进行限制,不对具体流量进行区分,可以实现给某个接口分配固定的带宽,控制方式单一,配置简单。 入方向与出方向的接口限速属于并列关系,用户可以根据需要同时配置,也可以单独配置。
|
9天前
|
安全 网络安全 数据安全/隐私保护
Cisco-交换机配置聚合端口
Cisco-交换机配置聚合端口
|
3月前
|
网络安全 数据安全/隐私保护 网络虚拟化
|
2月前
|
数据中心
配置案例 | CE交换机如何配置堆叠?
配置案例 | CE交换机如何配置堆叠?
|
2月前
盒式交换机又是如何配置堆叠的呢?
盒式交换机又是如何配置堆叠的呢?
|
5月前
|
网络协议 网络虚拟化 网络架构
交换机入门快速配置
交换机入门快速配置
|
2月前
|
前端开发 数据中心
数据中心框式交换机如何配置堆叠?
数据中心框式交换机如何配置堆叠?
|
2月前
|
Shell 网络安全 Python
网络工程师如何在ensp模拟器上玩python自动化配置交换机。
网络工程师如何在ensp模拟器上玩python自动化配置交换机。
140 0
|
2月前
|
网络虚拟化 数据安全/隐私保护
手把手教网络工程师2种方法如何恢复交换机配置
手把手教网络工程师2种方法如何恢复交换机配置
|
3月前
|
存储 Linux 网络安全