博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在网络中配置思科交换机
阅读量:2529 次
发布时间:2019-05-11

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

By default, all ports of a switch are enabled. As we are talking about , 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.

缺省情况下,交换机的所有端口均处于启用状态。 当我们谈论 ,无需在上配置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>enableSwitch# config terminalSwitch(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 0MRSwitch(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 15MRSwitch(config-line)#password mrtelnetMRSwitch(config-line)#login

    翻译自:

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

你可能感兴趣的文章
Beanutils基本用法
查看>>
玉伯的一道课后题题解(关于 IEEE 754 双精度浮点型精度损失)
查看>>
《BI那点儿事》数据流转换——百分比抽样、行抽样
查看>>
哈希(1) hash的基本知识回顾
查看>>
Leetcode 6——ZigZag Conversion
查看>>
dockerfile_nginx+PHP+mongo数据库_完美搭建
查看>>
Http协议的学习
查看>>
【转】轻松记住大端小端的含义(附对大端和小端的解释)
查看>>
设计模式那点事读书笔记(3)----建造者模式
查看>>
交换机划分Vlan配置
查看>>
yum安装Elasticsearch5.x
查看>>
正则表达式
查看>>
Python模块_json & pickle模块
查看>>
Python 模块之_os模块_os是与操作系统交互的接口
查看>>
通通玩blend美工(1)——荧光Button
查看>>
[UWP]了解模板化控件(8):ItemsControl
查看>>
使用JustDecompile修改程序集
查看>>
SQLServer 分组查询相邻两条记录的时间差
查看>>
Swift语言指南(一)--语言基础之常量和变量
查看>>
关于webpack的使用
查看>>