思科模拟器交换机的基本配置方法

如题所述

第1个回答  2022-09-22
  交换机具有转化和接受资料的动能,在区域网中是不能没有的重要装置的,在生活中,交换机和路由器一样重要。接下来是我为大家收集的方法,希望能帮到大家。
  :
  首先找出一台2811类的路由器和一台2960类的交换机和3台pc,利用直通线使各个装置相互连线起来,如下图所示:

  为交换机配置主机名,命令为:

  Switch>enable

  Switch#conf terminal

  Enter configuration mands, one per line. End with CNTL/Z.

  Switchconfig#hostname S1

  如下图所示:

  为交换机配置密码,命令为:

  S1config#enable secret cisco

  S1config#line vty 0 15

  S1config-line#password cisco

  S1config-line#login

  如下图所示

  配置交换机埠安全,配置命令是:

  S1config#int f0/1

  S1config-if#shutdown

  S1config-if#switch mode access

  S1config-if#switch port-securitiy

  如下图所示

  检查交换机的Mac地址表,命令是:

  S1#show mac-address-table,如下图所示:

  检视埠安全的设定情况,用命令为:show port-security,如下图所示: