CCNA实验(6) -- VLAN & SPT
交换机的作用主要有两个:
1.维护CAM(ContextAddress Memory)表,该表是MAC地址和交换机端口的映射表
2.根据CAM进行数据帧的转发
交换机对数据帧的处理有三种:
1.Forward:查询CAM表,有目的计算机所在的端口,且不是入端口
2.Filter:目的端口是入端口
3.Flood:查询不到目的计算机所在端口,或者收到广播帧或者组播帧
以太网交换机转发数据帧有三种交换方式:
1.存储转发(Store-and-Forward)
2.直接转发(Cut-Through)
3.无碎片(Fragment-Free):读取数据帧前64个字节后,开始转发该帧。
1.VLAN的划分
2.VLAN间路由
3.生成树
enable
conf t
no ip do lo
enable pass cisco
line con 0
logg sync
exec-t 0 0
line vty 0 4
pass cisco
logg sync
exit
host
1.VLAN的划分
------------------------------------------------------------------------------
SW1:
vlan database
vlan 2
vlan 3
apply
int f0/1
switchport mode access
switchport access vlan 2
exit
int f0/2
switchport mode access
switchport access vlan 3
exit
R1:
int f0/0
ip add 123.1.1.1 255.255.255.0
no shut
exit
R2:
int f0/0
ip add 123.1.1.1 255.255.255.0
no shut
exit
SW1:
show vlan-switch brief
2.VLAN的路由
--------------------------------------------------------------------------
R1:
int e0/0
no ip address
no shutdown
exit
int e0/0.10
encapsulation dot1Q 10
ip add 10.1.1.1 255.255.255.0
exit
int e0/0.20
encapsulation dot1Q 20
ip add 20.1.1.1 255.255.255.0
exit
SW1:
int f0/10
switchport mode trunk
switchport trunk encapsulation dot1q
no shutdown
exit
end
vlan database
vlan 10
vlan 20
apply
exit
conf t
int f0/1
switchport mode access
switchport access vlan 10
no shutdown
exit
int f0/2
switch mode access
switch access vlan 20
no shutdown
exit
PC1:
no ip routing
int e0/1
ip add 10.1.1.2 255.255.255.0
no shut
exit
ip default-gateway 10.1.1.1
PC2:
no ip routing
int e0/2
ip add 20.1.1.2 255.255.255.0
no shut
exit
ip default-gateway 20.1.1.1
3.生成树
-----------------------------------------------------------------------------
SW1:
int range f0/1 , f0/5
switchport mode trunk
switchport trunk encapsulation dot1q
no shutdown
exit
SW2:
int range f0/2 , f0/5
switchport mode trunk
switchport trunk encapsulation dot1q
no shutdown
exit
SW3:
int range f0/1 , f0/2
switchport mode trunk
switchport trunk encapsulation dot1q
no shutdown
exit
SW1:
vlan database
vlan 2
vtp server
vtp domain yeslab
vtp pass cisco
apply
exit
SW2:
vlan database
vtp client
vtp domain yeslab
vtp pass cisco
apply
exit
SW3:
vlan database
vtp client
vtp domain yeslab
vtp pass cisco
apply
exit
SW1:
show spanning-tree brief
SW1:
spanning-tree vlan 1 priority 4096
spanning-tree vlan 2 priority 8192
SW2:
spanning-tree vlan 2 priority 4096
spanning-tree vlan 1 priority 8192
CCNA实验(6) -- VLAN & SPT的更多相关文章
- CCNA实验2.VLAN
一. 二.配置主VTP上的信息 sw2上配置为domain server,sw1上配置为domain client,sw2上增加vlan并命名和添加描述 conf t vtp domain corp ...
- Packet Tracer 5.0 构建CCNA实验(2)—— 配置VLAN
Packet Tracer 5.0 构建CCNA实验(2)—— 配置VLAN Vlan(Virtual Local Area Network) 即虚拟局域网.VLAN可以把同一个物理网络划分为多个逻辑 ...
- 【网络】CCNA实验一:Vlan、Trunk
要求: 1:不同楼层物理隔离,但逻辑相连 2:相同楼层物理相连,但逻辑隔离 3:主机可以动态获取IP地址 4:不同VLAN间可以进行通信 5:主机最终访问www.esafenet.com弹出" ...
- Packet Tracer 5.0 构建CCNA实验(3)—— 路由器实现vlan间通信
--交换机配置 --交换机和路由器连接的接口 switchport mode trunk --路由器配置 enable conf t int fa0/0.1 --路由器接口的子接口 encapsula ...
- CCNA实验4:HDLC和PPP
一.HDLC封装 router9和11上分别配置s0/0如下 conf t int s0/0 encapsulation hdlc do show int s0/0 ip address x.x.x. ...
- CCNA实验1.port-security
一, 二,MAC地址绑定 3550-1#conf t3550-1(config)#int f0/13550-1(config-if)#switchport mode access /指定端口模式.35 ...
- CCNA实验3.单臂路由器
拓扑图: 一.交换机配置 通过路由器子接口的方式实现vlan之间的路由. conf t vlan 10 vlan 20 int f0/1 switchport access vlan 10 int f ...
- CCNA实验(1) -- 基本配置
Ctrl+A: 到行首(Ahead)Ctrl+E: 到行尾(End)Esc+B: 回退一个单词(Back)Esc+F: 前进一个单词(Forward) 1.三种配置模式2.时间时区配置3.设置超时时间 ...
- CCNA实验(2) -- Static Route
1.静态路由R1:ip route 22.1.1.0 255.255.255.0 12.1.1.2 2.静态汇总路由R1:ip route 22.1.0.0 255.255.0.0 12.1.1.2 ...
随机推荐
- Linux学习之awk命令
一. AWK 说明 awk是一种编程语言,用于在linux/unix下对文本和数据进行处理.数据可以来自标准输入.一个或多个文件,或其它命令的输出.它支持用户自定义函数和动态正则表达式等先进功能 ...
- ASP.NET Identity 系列笔记目录
编写目的 混迹博客园已经有一段时间了,一直都是在学习各路大神的文章,自己却没有做出什么贡献,所以觉得应该写一点点内容和大家一起分享.但是本人实在才疏学浅,有心无力啊!正好最近在学习 Microsoft ...
- Python核心编程笔记---- input 与raw_input
1.raw_input:的返回值是一个string 对象. 2.input:相当于eval(raw_input()),计算出来是什么类型就是什么类型. ------------------------ ...
- SQL Server 查看数据页面
第一步: 找到表的第一页dbcc ind(db_name,table_name,-1); 例子. dbcc ind(studio,person,-1);# pageFID 是文件号 pagePI ...
- 圣何塞与 Microsoft 宣布该市为超过 5,000 名市府公务员选择 Office 365、Windows Azure 和 StorSimple
过去几个月来我们展示了极大的客户吸引力,今天我们非常高兴地宣布,我们又赢得了一位新客户,且他们利用 Microsoft 革新 IT 的方式非常有趣. 今天,我们非常高兴地告诉大家,圣何塞市选择了 Mi ...
- 自定义UITextField(UITextField重写)
// CustomField.h #import <UIKit/UIKit.h> @interface CustomField : UITextField @end // CustomFi ...
- poj1657---chessboard
对棋盘横纵坐标的解读 str1="f3" str2="e9" x=abs(str1[0]-str2[0]) y=abs(str1[1]-str1[1]) 如果x ...
- 简单实现计算Edit Distance算法
最近因为工作需要,学习了NLP的相关知识,简单动手实现了一下计算Edit Distance的算法,就是计算一个字符串要变成另一个字符串需要的代价,这其中采用Levenshtein方式,即规定一个插入和 ...
- background-size:的认识;
background-size:100%;其实是元素的背景图片的宽度和元素宽度相同,高度auto: 也可理解为:background-size:100% auto; 而background:cover ...
- redis持久化与可用性
redis对于持久化有快照及aof日志文件两种形式. 快照db文件,长处是二进制,大小比aof日志文件小.但会丢失最后一次成功备份时间到down机时间的数据. aof相比而言文件大小就大了点,但相对快 ...