By default, all ports of a switch are enabled. As we are talking about layer 2 switching, there is no need to configure IP address or any routing protocol on the switch. In such a situation, the configuration is not focused on the switch.

缺省情况下,交换机的所有端口均处于启用状态。 当我们谈论第2层交换时 ,无需在交换器上配置IP地址或任何路由协议。 在这种情况下,配置不会集中在交换机上。

The normal configuration given below can be done on the switch:

下面给出的常规配置可以在交换机上完成:

  1. You can define the hostname on the switch.

    您可以在交换机上定义主机名。

  2. You can set the password for the switch.

    您可以设置交换机的密码。

  3. You can describe all the ports of the switch.

    您可以描述交换机的所有端口。

  4. You can set the password for the console ports.

    您可以设置控制台端口的密码。

  5. You can set the password of ports for Telnetting.

    您可以设置用于Telnet的端口密码。

The above mentioned configuration list can be seen with the following example:

通过以下示例可以看到上面提到的配置列表:

  • First, you have to execute the command execute using the command execution mode. You will see switch by default as soon as you open it. Once you run this command, you will enter into privileged execution mode. In this mode, you execute the config terminal command. By executing this command, you will be in the global configuration mode.

    首先,必须使用命令执行模式执行命令执行。 默认情况下,您将在打开开关后立即看到它。 一旦运行此命令,您将进入特权执行模式。 在这种模式下,您将执行config terminal命令。 通过执行此命令,您将进入全局配置模式。

Switch>enable
Switch# config terminal
Switch(config)#

  • You can configure your switch after coming into the global configuration mode. You use the hostname command to configure hostname on the switch. After this command, you can mention the name that you want to give to the switch.

    进入全局配置模式后,可以配置交换机。 您可以使用hostname命令在交换机上配置主机名。 执行此命令后,您可以提及要为交换机指定的名称。

  • Switch(config)#hostname MRSwitch
    
    
  • As soon as this command is executed, the name of your switch is set up.

    执行此命令后,即会设置交换机的名称。

  • MRSwitch(config)#
    
    
  • The switch can be protected from password so that no unauthorized person can access it. You use the enable secret command for this. After this command, you type the password you want to set for the switch.

    可以使用密码保护该开关,以便任何未经授权的人都不能访问它。 为此,请使用enable secret命令。 此命令后,键入要为交换机设置的密码。

  • MRSwitch(config)#enable secret MR123
    
    
  • To configure an interface of the switch, first, you have to go to the interface configuration mode. For this, use the interface command. Next, to this command, you have to type the name of the interface.

    要配置交换机的接口,首先,必须进入接口配置模式。 为此,请使用interface命令。 接下来,在此命令中,您必须键入接口的名称。

  • MRSwitch(config)# interface f0/16
    
    
  • To define the description of an interface, you use the description command in the interface configuration mode. Next, to this command, you write the description of that interface.

    要定义接口的描述,请在接口配置模式下使用description命令。 接下来,在此命令中,编写该接口的描述。

  • MRSwitch(config-if)# description Description of of/16 interface
    
    
  • You use the password command to set the password of any console line. But for this, you have to first go to the configuration mode of the console line you want to set. For this, you execute the line console command. Next, to this command, you type the console number of the console.

    您可以使用password命令来设置任何控制台行的密码。 但是为此,您必须首先进入要设置的控制台行的配置模式。 为此,您执行line console命令。 接下来,在此命令中,键入控制台的控制台号。

  • MRSwitch(config-if)# line console 0
    MRSwitch(config-line)#password mrconsole
    
    
  • After that, you can execute the login command. Anyone trying to access the console line by this command is forced to enter the password. If you do not execute the login command, then the password is set but the password is not compulsory to enter. You can execute this command even after the telnet password is set.

    之后,您可以执行login命令。 任何试图通过此命令访问控制台行的人都必须输入密码。 如果不执行login命令,则将设置密码,但密码不是必须输入的。 即使设置了telnet密码,您也可以执行此命令。

  • You use the line "vty" command to set the telnet password on the interfaces. Next, to this command, you give the range of virtual terminals lines. If you want to configure all 16 lines, then it gives 0 to 15 range. Then you set the telnet password with the password command and execute the login command.

    您可以使用line “ vty”命令在接口上设置telnet密码。 接下来,向该命令提供虚拟终端线的范围。 如果要配置所有16条线,则其范围为0到15。 然后,使用password命令设置telnet密码并执行login命令。

  • MRSwitch(config-line)#line vty 0 15
    MRSwitch(config-line)#password mrtelnet
    MRSwitch(config-line)#login
    

    翻译自: https://www.includehelp.com/computer-networks/configuring-cisco-switches.aspx

在网络中配置思科交换机相关推荐

  1. 在NBMA网络中配置OSPF

    在NBMA网络中配置OSPF 在NBMA网络中配置OSPF协议和调整属性,可以灵活组建OSPF网络. 文章目录 在NBMA网络中配置OSPF 一.应用环境 二.前置任务 三.配置NBMA 1.修改OS ...

  2. 路由交换技术实战七 FR 网络中配置 OSPF( 完成版 )

    帧中继网络用户接口上最多可支持1024条虚电路,其中用户可用的dlci范围是:16-1007 DLCI只具有局部意义,即交换机上不同的端口可以使用相同的DLCI号. 实验要求: 1.掌握配置帧中继的基 ...

  3. SONOS 无线音响配置思科交换机

    昨天公司买了几个SONOS的无线HIFI设备,豆子需要测试一下效果. 作为一个简单的测试,我的结构很简单, 路由器(防火墙)出来接思科的交换机,然后Boost和我的控制器(电脑或者手机)都在一个VLA ...

  4. 通过python基于netconf协议获取网络中网元的配置数据,助力企业网络控制自动化轻松实现!

    摘要:在当今信息化时代,大多数企业都需要网络支撑企业的ICT运行,提升企业运行效率,针对企业网络中的网元设备(包括交换机,路由器,防火墙等),很多企业希望根据自身的业务特点定制网络管理,比如可以实现网 ...

  5. 演示:思科交换机的Telnet管理与SSH管理

    演示:思科交换机的Telnet管理与SSH管理 演示目标:配置思科交换机的Telnet和SSH功能 演示环境:如下图 9.8所示的演示环境 演示背景:完成主机192.168.100.2Telnet二层 ...

  6. oracle ldom ipmp,在 Logical Domains 环境中配置 IPMP

    在 Logical Domains 环境中配置 IPMP Oracle VM Server for SPARC 软件支持对虚拟网络设备使用基于链路的 IP 网络多路径 (IP network mult ...

  7. idc运维怎么转linux运维,IDC运维怎么便捷配置机房交换机

    对于IDC机房从业人员来说,会经常跟交换机打交道,机房和交换机数量越多,管理起来越混乱.按常规的方法怎么配置交换机呢? 下面小编以三层交换机的配置为例子,说一说配置的步骤. 1:配置管理地址 每个交换 ...

  8. python网络编程中,Cisco packet tracer 中两个交换机和一个路由器的配置

    python网络编程中,Cisco packet tracer 中两个交换机和一个路由器的配置 原理图如下所示: 配置PC6–PC11的ip地址和子网掩码: 配置路由器的左半部分的ip地址和子网掩码: ...

  9. 华为交换机ssh思科交换机_思科交换机交换机中ip、mac地址绑定

    在思科交换机中为了防止ip被盗用或员工乱改ip,可以做以下措施,既ip与mac地址的绑定,和ip与交换机端口的绑定. 一.通过IP查端口 先查MAC地址,再根据MAC地址查端口: bangonglou ...

最新文章

  1. 开放平台架构_三步画出产品业务架构图
  2. 小猿圈Java学习心得之Java程序员能力提升在哪
  3. input type=text 无法使用.html(),input type=”text” (Elements) – HTML 中文开发手册
  4. nssl1511-我的世界【堆,贪心】
  5. 非cpu0启动linux,SD卡无法启动Linux的问题及解决
  6. python表白代码-520使用Python实现quot;我爱你”表白
  7. Android 手机设置CMWAP 接入点
  8. java 测试---案例实现
  9. 2021-2022-1 线性代数知识点总结
  10. ssh无密码登录原理和配置方法
  11. Windows 10 VMware-workstation 16 Unlock3.0.3 macOS10.15/macOS11.0
  12. 开运魔法,晓腾叔叔的日常迷信。
  13. 完整版JavaWeb环境搭建-maven-servlet...与测试,欢迎大家一起学习
  14. 780. 到达终点 (Reaching Points)
  15. 鸿蒙应用开发培训笔记01:HarmonyOS介绍
  16. java程序员进阶必读书单
  17. 【ant】Apache ant 开发
  18. Python算法之旅元组的风暴之最长上升子序列
  19. 双剑合璧保障数据库安全
  20. 读书有益——》摆渡人

热门文章

  1. voinc vue实现级联选择
  2. react-router 源码浅析
  3. android 之 百度地图
  4. perl 用网易发邮件报错 554 DT:SPM 163 smtp14
  5. configparser logging
  6. Python3.6全栈开发实例[005]
  7. property修饰关键字
  8. Android之封装好的异步网络请求框架
  9. 遥感影像滤波处理软件 — timesat3.2
  10. 如何部署Zabbix服务端