cisco2960配置思科的交换机怎么配置

cisco2960配置  时间:2021-02-19  阅读:()

cisco2960要配置一个管理IP,需要注意什么些什么,上层设备不用配置吧?

一般就是给vlan1配置IP地址 然后跟他一个子网的计算机就可以它了 你也应该设置一个默认网关 ip default-gateway 192.168.0.1之类的 否则其他子网的计算机就不能这个交换机了

思科2960怎样配置实现端口限速

请参考一下例子 一、网络说明 ?? ??PC1接在Cisco3550 F0/1上,速率为1M; ??PC1接在Cisco3550 F0/2上,速率为2M; ??Cisco3550的G0/1为出口。

?? ??二、详细配置过程 ??注:每个接口每个方向只支持一个策略;一个策略可以用于多个接口。

因此所有PC的下载速率的限制都应该定义在同一个策略(在本例子当中 ??为policy -map user-down),而PC不同速率的区分是在Class-map分别定义。

?? ??1、在交换机上启动QOS ??Switch(config)#mls qos //在交换机上启动QOS ?? ??2、分别定义PC1(10.10.1.1)和PC2(10.10.2.1)访问控制列表 ??Switch(config)#ess-list 10 permit 10.10.1.0 0.0.0.255 //控制pc1上行流量 ??Switch(config)#ess-list 100 permit any 10.10.1.0 0.0.0.255 //控制pc1下行流量 ??Switch(config)#ess-list 11 permit 10.10.2.0 0.0.0.255 //控制pc2上行流量 ??Switch(config)#ess-list 111 permit any 10.10.2.0 0.0.0.255 //控制pc2下行流量 ?? ??3、定义类,并和上面定义的访问控制列表绑定 ??Switch(config)# class-map user1-up //定义PC1上行的类,并绑定访问列表10 ??Switch(config-cmap)# match ess-group 10 ??Switch(config-cmap)# exit ??Switch(config)# class-map user2-up ??Switch(config-cmap)# match ess-group 11 //定义PC2上行的类,并绑定访问列表10 ??Switch(config-cmap)# exit ??Switch(config)# class-map user1-down ??Switch(config-cmap)# match ess-group 100 //定义PC1下行的类,并绑定访问列表100 ??Switch(config-cmap)# exit ??Switch(config)# class-map user2-down ??Switch(config-cmap)# match ess-group 111 //定义PC2下行的类,并绑定访问列表111 ??Switch(config-cmap)# exit ?? ??4、定义策略,把上面定义的类绑定到该策略 ??Switch(config)# policy-map user1-up //定义PC1上行的速率为1M ??Switch(config-pmap)# class user1-up ??Switch(config-pmap-c)# trust dscp ??Switch(config-pmap-c)# police 1024000 1024000 exceed-action drop ??Switch(config)# policy-map user2-up //定义PC2上行的速率为2M ??Switch(config-pmap)# class user2-up ??Switch(config-pmap-c)# trust dscp ??Switch(config-pmap-c)# police 2048000 1024000 exceed-action drop ??Switch(config)# policy-map user-down ??Switch(config-pmap)# class user1-down ??Switch(config-pmap-c)# trust dscp ??Switch(config-pmap-c)# police 1024000 1024000 exceed-action drop ??Switch(config-pmap-c)# exit ??Switch(config-pmap)# class user2-down ??Switch(config-pmap-c)# trust dscp ??Switch(config-pmap-c)# police 2048000 1024000 exceed-action drop ??Switch(config-pmap-c)# exit ?? ??5、在接口上运用策略 ??Switch(config)# interface f0/1 ??Switch(config-if)# service-policy input user1-up ??Switch(config)# interface f0/2 ??Switch(config-if)# service-policy input user2-up ??Switch(config)# interface g0/1 ??Switch(config-if)# service-policy input user-down

谁有CISCO2960配置模板给我一份,谢谢

service timestamps debug datetime localtime 配置 debug 记录时间戳为每日时间,本地时钟 service timestamps log datetime localtime 配置 loggin 日志 记录时间戳为每日时间,本地时钟 service password-encryption 加密明文密码 ! hostname xxxx-XXXX-C2960-01 给设备命名 ! enable secret xxxx 配置特权密码为 xxxx ! username xxxx pass xxxx 配置本地数据库用户名xxxx 密码 xxxx aaa new-model system mtu routing 1500 vtp mode transparent 定义此设备VTP 模式为透明模式 ip -zero ! no ip domain-lookup 关闭域名自动查找 ! no file verify auto spanning-tree mode pvst spanning-tree extend system-id ! vlan internal allocation policy ascending ! vlan xxxx 设置本交换机的接入VLAN ID和名字 name xxxx vlan 300 定义暂时的管理VLAN ID 和名字 name xxx vlan xxxx 定义割接后的VLAN ID 和名字 name xxxx ! interface 0/1 进入F0/1口 switchport ess vlan xxx 把这个口划入XXX vlan switchport mode ess 定义这个口为访问端口 (连接终端设备的接口) spanning-tree portfast 定位这个口为快速转发口 (减少生成树的计算30秒左右) ! interface 0/2 switchport ess vlan xxx switchport mode ess spanning-tree portfast ! interface 0/3 switchport ess vlan xxx switchport mode ess spanning-tree portfast ! interface 0/4 switchport ess vlan xxx switchport mode ess spanning-tree portfast ! interface 0/5 switchport ess vlan xxx switchport mode ess spanning-tree portfast ! interface 0/6 switchport ess vlan xxx switchport mode ess spanning-tree portfast ! interface 0/7 switchport ess vlan xxx switchport mode ess spanning-tree portfast ! interface 0/8 switchport ess vlan xxx switchport mode ess spanning-tree portfast ! interface 0/9 switchport ess vlan xxx switchport mode ess spanning-tree portfast ! interface 0/10 switchport ess vlan xxx switchport mode ess spanning-tree portfast ! interface 0/1 进入G0/1接口 switchport trunk encapsulation dot1q 定义此接口的协议 switchport mode trunk 定义此接口模式为trunk口 ! interface 0/2 switchport trunk encapsulation dot1q switchport mode trunk ! interface Vlan1 no ip address no ip route-cache ! interface VlanXXX 定义管理VLAN的地址 ip address X.X.X.X X.X.X.X 定义此管理VLAN的ip,掩码 no ip route-cache ! line con 0 进入CONSOLE 口 CONSOLE 编号只能为0 exec-timeout 5 5 设置CONSOLE 口 超时时间 logging synchronous 关闭CONSOLE 口 日志信息与光标同步 login local 注册本地用户名密码生效 line vty 0 4 开启 远程TELNET 线程 0-6 最多允许7个用户同时远程登录 logging synchronous 同CONSOLE口 login local 同CONSOLE口 line vty 5 同上 logging synchronous 同上 login local 同上 #号下 clock set 配置设备时钟 conf t 下 clock timezone GMT + 8 配置时区 本单位的C2960配置清单

思科的交换机怎么配置

当傻瓜交换机用就是不需要设置的,实际上就是所有的交换机口都在vlan 1里头(出厂的缺省设置就是这样)。

交换机互相连接起来就可以,有可能要用交叉线,只要网线接的口灯亮就应该可以。

pacificrack:超级秒杀,VPS低至$7.2/年,美国洛杉矶VPS,1Gbps带宽

pacificrack又追加了3款特价便宜vps搞促销,而且是直接7折优惠(一次性),低至年付7.2美元。这是本月第3波便宜vps了。熟悉pacificrack的知道机房是QN的洛杉矶,接入1Gbps带宽,KVM虚拟,纯SSD RAID10,自带一个IPv4。官方网站:https://pacificrack.com支持PayPal、支付宝等方式付款7折秒杀优惠码:R3UWUYF01T内存CPUSS...

DogYun27.5元/月香港/韩国/日本/美国云服务器,弹性云主机

DogYun怎么样?DogYun是一家2019年成立的国人主机商,称为狗云,提供VPS及独立服务器租用,其中VPS分为经典云和动态云(支持小时计费及随时可删除),DogYun云服务器基于Kernel-based Virtual Machine(Kvm)硬件的完全虚拟化架构,您可以在弹性云中,随时调整CPU,内存,硬盘,网络,IPv4路线(如果该数据中心接入了多条路线)等。DogYun弹性云服务器优...

hostkvm:7折优惠-香港VPS韩国VPS,8折优惠-日本软银、美国CN2 GIA、新加坡直连VPS

hostkvm本月对香港国际线路的VPS、韩国CN2+bgp线路的VPS正在做7折终身优惠,对日本软银线路、美国CN2 GIA线路、新加坡直连线路的VPS进行8折终身优惠促销。所有VPS从4G内存开始支持Windows系统,当然主流Linux发行版是绝对不会缺席的!官方网站:https://hostkvm.com香港国际线路、韩国,7折优惠码:2021summer日本、美国、新加坡,8折优惠码:2...

cisco2960配置为你推荐
linesnsthinksns网站成功 安装ThinkSNS后主页有问题css加载失败css 无法加载企业ssl证书国内哪些公司是专门做ssl证书的呢?360邮箱邮箱地址指的是什么?sqlserver数据库SQL SERVER数据库是可以做什么用的?重庆电信dns重庆电信的DNS是什么资费标准电信4G套餐?文档下载请问手机版wps如何把云文档下载到手机上的本地文档?刚刚网刚刚网上刷单被骗了5万多怎么办啊 报警有用吗
重庆虚拟主机 哈尔滨域名注册 网站域名备案查询 hostmaster tier wdcp 华为云主机 tightvnc 网页背景图片 铁通流量查询 卡巴斯基官方免费版 电子邮件服务器 泉州移动 1g内存 metalink 免费dns解析 idc查询 中国电信测速器 丽萨 主机返佣 更多