网络实验 02-交换机的Telnet远程登录设置

交换机的Telnet远程登录设置

一、实验目标

掌握采用telnet方式配置交换机的方法

二、技术原理

1. 配置交换机的管理IP地址(计算机的IP地址与交换机管理IP地址在同一网段)

2. 为telnet用户配置用户名和登录口令

    Switch(config)#enble password  xxxx          //设置进入特权模式的密码
    Switch(config-line)#password xxxx               //设置console端口及telnet远程登录密码。
    Switch(config)#line console 0
    Switch(config-line)#password xxxx              //设置通过console端口连接设备的密码
    Switch(config-line)#login
    Switch(config)#line vty 0 4
    Switch(config-line)#password xxxx              //设置telnet远程登录密码
    Switch(config-line)#login

三、实验步骤

实验拓扑

02-1

实验步骤

  1. 配置交换机的管理IP地址

     Switch>enable
     Switch#configure terminal
     Switch(config)#interface vlan 1                 //默认情况下交换机所有端口都处于 vlan 1 当中
     Switch(config-if)#ip address 192.168.1.1 255.255.255.0      //配置交换机管理IP地址
     Switch(config-if)#no shutdown                 //开启Interface Vlan1
     Switch(config-if)#exit
  2. 设置进入特权模式的密码

     Switch(config)#enable password 123456             
  3. 设置通过console端口连接设备的密码

     Switch(config)#line console 0
     Switch(config-line)#password asdf
     Switch(config-line)#login
     Switch(config-line)#exit
  4. 设置telnet远程登录密码

     Switch(config)#line vty 0 4
     Switch(config-line)#password abc123
     Switch(config-line)#login 
     Switch(config-line)#end

    02-2

  5. 查看配置情况

     Switch#show running-config 

四、验证

  1. 验证通过console端口连接设备的密码

     Password:                                //这里输入asdf
     Switch>
  2. 验证进入特权模式的密码

     Switch>enable
     Password:                                //这里输入123456
     Switch#
  3. 验证telnet远程登录密码

    给PC机设置IP地址

    02-3

    打开Command Prompt

     PC>ipconfig
     PC>ping 192.168.1.1
     PC>telnet 192.168.1.1  

    02-4

转载于:https://www.cnblogs.com/networklearning/p/11345317.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值