Cisco交换机如何设置?设置步骤都有哪些?

2023-01-09

本文主要是 Cisco交换机如何设置?设置步骤有哪些? 相关的知识问答,如果你也了解,请帮忙补充。

参考知识1

1 , 设置交换机名称

(config)#hostname hostname

2,设置log存放路径

(config)#logging 10.7.68.68 //将log档文件存在10.7.68.68

(config)#spanning-tree mode rapid-pvst // 设定 spanning-tree 的模式是 rapid-pvst

3,设置errdisable

(config)#errdisable recovery cause all //开启errdiable 恢复的原因

(config)#errdisable recovery interval 300 //errdisable后300秒恢复

4,设置snmp-server

(config)#snmp-server community askeymis RO //设置简单网络管理协议字符串为只读

5, 设置vtp

(config)#vtp domain askey // 设定VTP domain 名称

(config)vtp mode transparent // 设定 VTP 模式为透明模式

Vlan

1,创建Vlan

(config)#vlan 180 //创建Vlan ID号为180

(config-vlan)#name askey //Vlan 名称为askey

2,删除Vlan

(config)#no vlan 180

#show vlan brief //查看交换机当前Vlan 号及Vlan 下有哪些端口

3,配置管理IP

(config)#int vlan 180

(config-if)#ip address 192.168.1.251 255.255.255.0 //设置管理IP地址

(config)#ip default-gateway 192.168.1.254 //设置默认路由,供其他网段访问

4,将端口划至Vlan 180

4.1单一端口划分

(config)#int f0/1 //进入端口f0/1

(config-if)#sw mode access //设置访问模式

(cofnig-if)#sw ac vlan 180 //将其端口划入Vlan 180

4.2多端口划分

(config)#int range f0/1 _ 24 //端口范围为1-24

(config-if-range)#sw mode access

(config-if-range)#sw ac vlan 180

端口配置

1,端口配置

(cofnig)#interface FastEthernet0/1

(config-if)#switchport access vlan 33 // 划分VLAN

(config-if)# switchport mode access

(config-if)# switchport port-security maximum 2 //设定端口只允许接入2个PC

(config-if)# switchport port-security // 启用端口安全

(config-if)# switchport port-security violation restrict // 发生违例 端口进errdisable,并记录

(config-if)# storm-control broadcast level 0.80 //控制广播包的突发百分比

(config-if)# storm-control action shutdown //暴风控制的违例时端口进入errdisable

(config-if)# storm-control action trap //产生snmp trap(抑制)消息来通告发生过量流量的情况

(config-if)# spanning-tree portfast // 配置接口为portfast模式

(config-if)# spanning-tree bpduguard enable // 启用bpuguard 防护

(config-if)# spanning-tree guard root // 启用根桥防护

设置时间与同步

1 , 开启debug与log记录时间的服务

(config)#Service timestamps debug datetime localtime //开启debug记录时显示的时间

(config)#Service timestamps log datetime localtime //开启log记录时显示的时间

2,设置时间与时区

(config)# Clock timezone TAIWAN 8 //设置时区

(config)# Clock set 12:16:50 nov 27 2008 //设置时间(月,日,年)

#Show clock //查看交换机当前的时间

3,设置ntp server 实现时间同步

(config)# ntp server 10.1.71.249 //设置交换机与ntp server 实现时间同步

#show ntp stauts //查看交换机是否同步

Clock is synchronized, stratum 3, reference is 10.1.71.249(同步)

nominal freq is 119.2092 Hz, actual freq is 119.2093 Hz, precision is 2**17

reference time is CCD89F21.ECA0C247 (12:22:57.924 TAIWAN Thu Nov 27 2008)

clock offset is 8.4785 msec, root delay is 399.51 msec

root dispersion is 937.29 msec, peer dispersion is 885.30 msec

Password

1,开启明文密码加密服务

(config)#service password-encryption //将明文密码加密

2,设置控制台密码

(config)#line consloe 0 //进入控制台

(config-line)#login //登录

(config-line)#password cisco //设置密码

3,设置enable密码

(config)#enable password cisco

(config)#enable secret password cisco //给密码加密码 ,优先级高于enable password

4,设置Telnet 密码

(config)#line vty 0 4 //进入vty模式

(config-line)#login

(config-line)#password cisco //设置密码

(config-line)#exec-timeout 5 0 //telnet 5分钟超时。

相似知识
思科路由交换机有哪些型号的产品 思科交换机型号解释1.cisco开头的产品都是路由器;2.rsp开头的都是cisco7500系列产品的引擎;3.vip开头的产品都是cisco7500系列产品的多功能接口处理器模块4.pa开头的产品都
cisco交换机系列具体都有哪些型号? Cisco的交换机产品以“Catalyst”为商标,包含1900、2800、2900、3500、4000、5000、5500、6000、8500等十多个系列。总的来说,这些交换机可以分为两类:一类是固
cisco无线路由器如何设置 思科作为家用路由器怎么样 参考知识1cisco无线路由器是工程师进行网络实验模拟的软件,而且可以模拟网络中的多种设备,像是台式电脑、笔记本电脑、手机等,为他们搭建各种网络环境,模拟网络拓扑结构等。那么cisco无线路由器如何设
思科交换机的常见问题 参考知识1Cisco交换机常见问题一:目前Cisco有哪些交换机可支持三层交换功能?回答:Catalyst2948G-L3、Catalyst4908G-L3、Catalyst4003、Catalyst
如何将腾达路由器设置成交换机 参考知识1  怎么将腾达路由器当成交换机来用呢?下面由我为你整理了如何将腾达路由器设置成交换机的相关方法,希望对你有帮助!  腾达路由器设置成交换机方法步骤如下  连接线路  直接将入户的网线接在路由
交换机高档品牌都有哪些??是否只有思科的交换机属于高档品牌? 不是,在市面上还有很多高端产品,Cisco的设备也有中端产品,其次还有华为、h3c的设备都还不错。参考知识1juniper,北电使用比较广泛,华为和H3C(现被惠普收购)在我本人看来,只能算中端,思科
cisco思科sd2008怎样设置 参考知识1cisco思科sd2008无线路由器设置方法如下:1、首先接通电源,将设备自带的电源适配器一端插入路由器的电源孔,一端插入电源插座。然后,连接WAN口线,将Modem或者是小区宽带的网线连接
国威WS824(10)型如何在分机上指定外线电话?如何设置分机号?我需要设置的详细代码?谢谢各位了! 10型机制定选外线是拨31至38,然后拨电话号码就可以了,设置分机号码必须知道端口号,如果分机号码没有弹编过的话,就直接取后两位就可以了,如果弹编的话只能用专用话机查看了,具体的编程步骤是:用任意分机