Cisco 模拟配置
本次模拟:采用Cisco Packet Tracer 软件,进行cisco网络设备的模拟。可以实现CLI界面命令配置,同实际交换机一样。
1、同一VLAN 可以互相访问,不同VLAN 不能访问

PC0 :192.168.1.10 PC1:192.168.1.11 PC2:192.168.1.12
PC3 :192.168.1.13 PC4:192.168.1.14 PC5:192.168.1.15
掩码:255.255.255.0 网关:192.168.1.1
Switch0 :
Switch>enable
Switch#configure terminal
Switch(config)#vlan
Switch(config-vlan)#exit
Switch(config)#vlan
Switch(config-vlan)#exit
Switch(config)#vlan
Switch(config-vlan)#exit
Switch(config)#interface f /
Switch(config-if)#switchport access vlan
Switch(config-if)#exit
Switch(config)#interface f /
Switch(config-if)#switchport access vlan
Switch(config-if)#exit
Switch(config)#interface f /
Switch(config-if)#switchport access vlan
Switch(config-if)#exit
Switch(config)#interface f /
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch#show vlan
Switch 1:
同 Switch0 一样的配置。
完成后,相同VLAN间可以访问,不同VLAN不能访问。
PC0 ping PC 1 : timeout
PC0 ping PC 3 : reply
2、三层交换机实现路由,不同VLAN间可以互相访问

PC9: 192.168.2.9 PC11 192.168.2.11 掩码:255.255.255.0 网关:192.168.2.1
PC10: 192.168.3.10 PC12 192.168.3.12 掩码:255.255.255.0 网关:192.168.3.1
Switch 5:
Switch>enable
Switch#configure terminal
Switch(config)#vlan
Switch(config-vlan)#exit
Switch(config)#vlan
Switch(config-vlan)#exit
Switch(config)#interface f /
Switch(config-if)#switchport access vlan
Switch(config-if)#exit
Switch(config)#interface f /
Switch(config-if)#switchport access vlan
Switch(config-if)#exit
Switch(config)#interface f /
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch 6:
同switch5 配置一样。
S3560:
Switch>enable
Switch#configure terminal
Switch(config)#ip routing #开启路由功能
Switch(config)#vlan
Switch(config-vlan)#exit
Switch(config)#vlan
Switch(config-vlan)#exit Switch(config)#interface f /
Switch(config-if)#switchport trunk encapsulation dot1q #给这个接口的trunk封装为802..Q的帧格式
Switch(config)#switchport mode trunk
Switch(config-if)#exit
Switch(config)#interface f /
Switch(config-if)#switchport trunk encapsulation dot1q #给这个接口的trunk封装为802..Q的帧格式
Switch(config)#switchport mode trunk
Switch(config-if)#exit Switch(config)#interface vlan
Switch(config-if)# ip address 192.168.2.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config)#exit
Switch(config)#interface vlan
Switch(config-if)# ip address 192.168.3.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config)#exit Switch# show ip route
完成后,不相同VLAN间可以访问
PC9 ping PC 10 : reply
PC9 ping PC 12 : reply
3、快速生成树
是网络在冗余链路的情况下,避免环路,形成广播风暴。
配置的时候需要先配置交换机,然后在连接线路,不然会形成广播风暴

PC13 :192.168.1.13 PC14 :192.168.1.14
Switch7:
Switch>enable
Switch#configure terminal
Switch(config)#vlan
Switch(config-vlan)#exit Switch(config)#interface f /
Switch(config-if)#switchport access vlan
Switch(config-if)#exit
Switch(config)#interface range f /-
Switch(config-if-range)#switchport mode trunk
Switch(config-if-range)#exit
Switch(config)#spanning-tree mode rapid-pvst
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit Switch#show spanning-tree
Switch#show spanning-tree interface f0/
Switch8:
同Switch7一样
配置完成后,当2/3端口任意一个出现问题,可以快速的切换到备用端口,保证数据的传输
Cisco 模拟配置的更多相关文章
- cisco 路由配置
Cisco路由配置基础 刚刚接触cisco路由配置,下面是学习的笔记,感觉命令还是多敲才能熟悉 一. 所处状态各类 router> 用户处于用户命令状态,可以查看网络和主机 router# 用户 ...
- cisco路由器配置教程
配置cisco路由器 经过几十年的发展,从最初的只有四个节点的ARPANET发展到现今无处不在的Internet,计算机网络已经深入到了我们生活当中.随着计算机网络规模的爆炸性增长,作为连接设备的路由 ...
- cisco基本配置命令
实验命令 router> enable 从用户模式进入特权模式 router# disable or exit 从特权模式退出到用户模式 router# show sessions 查看本机上的 ...
- [CISCO] 简单配置 Telnet 服务
[CISCO] 简单配置 Telnet 服务 一.Introduction Telnet 协议是一种应用层协议,使用于网际网路及区域网中,使用虚拟终端机的形式,提供双向.以文字字串为主的互动功能.属于 ...
- CiSCO 交换机配置 SSH 登陆
CiSCO 交换机配置 SSH 登陆 题目:在三层交换机上仅运行 SSH 服务,且用户名和密码的方式登录交换机. (一)了解主机名与域名 1."主机名" 为该设备的名称 2 ...
- Cisco 交换机配置的基本命令
1.不同的vlan 不同vlan需要路由 在路由的端口设置多个IP段 交换机模拟器实验六 2.查看端口名字 SWA#sh vlan default Active F0/1, F0/2, F0 ...
- CISCO ACL配置(目前)
什么是ACL? 访问控制列表简称为ACL,访问控制列表使用包过滤技术,在路由器上读取第三层及第四层包头中的信息如源地址,目的地址,源端口,目的端口等,根据预先定义好的规则对包进行过滤,从而达到访问控制 ...
- Cisco常用配置和命令
1.ASA常用管理management-access inside #开启远程连接inside口 show snmp-server oidlist #查看ASA snmp的 ...
- Cisco DHCP 配置方法
首先假设两台思科路由器,R1(服务端)连接R2(客户端),组成一个简单的链式局域网,下面就来实现DHCP,配置的命令及其解释如下: 1.R1 dhcp服务的配置 dhcp#configure term ...
随机推荐
- Promethues配置
# my global config global: scrape_interval: 10s # Set the scrape interval to every 15 seconds. Defau ...
- 环境安装文档(for Ubuntu)
这个文档的目标是:各位小伙伴通过这个文档,可以在一台全新的 Ubuntu 电脑上搭建平常开发使用的环境,主要包含 Node.js, git 和 编辑器部分. 这是针对 Ubuntu 系统的安装文档,W ...
- Leetcode-Day Three
1002. Find Common Characters Given an array A of strings made only from lowercase letters, return a ...
- Spring Cloud 是什么
概念定义 Spring Cloud 是一个服务治理平台,提供了一些服务框架.包含了:服务注册与发现.配置中心.消息中心 .负载均衡.数据监控等等. Spring Cloud 是一个微服务框架,相比 D ...
- 万字硬核干货!6大技巧,极速提升kubectl的生产力!
明晚8:30,k3s实战课程开启!将由Rancher研发总监带你畅游k3s与边缘AI的奇妙世界.课程内容完全由实际使用场景中总结而来,别错过啦~!访问以下链接即可传送到课程现场: http://z-m ...
- Mysql8以上需要指定时区serverTimezone
JDBC连接Mysql8以下 com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/test?useUnicode=true&charac ...
- 前端每日实战:123# 视频演示如何用纯 CSS 创作一架双冀飞机
效果预览 按下右侧的"点击预览"按钮可以在当前页面预览,点击链接可以全屏预览. https://codepen.io/comehope/pen/yxVYRL 可交互视频 此视频是可 ...
- 遍历tree
1.解决方法 filterData (arr) { var newArr = [] arr.map((item) => { var childrenArr if (item.children ! ...
- WSGI-mini-web框架服务器
前期准备: 安装python环境安装pycharm安装MySQL数据库安装pymsql创建一个学生表,存入数据我们只是实现一个非常简单的web服务,前端页面不会专门做页面文件,会在代码中以具体命令的形 ...
- Markdown使用说明
# Markdown 使用说明 Markdown 是一种**轻量级标记语言** 使用规则: 1. 标题 2. 列表 3. 引用 4. 图片与链接 5. 粗体与斜体 6.表格 7. 代码框 8. 分 ...