《CCIE路由和交换认证考试指南(第5版) (第1卷)》——1.4节交换和桥接逻辑

简介:

本节书摘来自异步社区《CCIE路由和交换认证考试指南(第5版) (第1卷)》一书中的第1章,第1.4节交换和桥接逻辑,作者 【美】Narbik Kocharians(那比克 科查理安) , 【斯洛伐克】Peter Paluch(彼得 派拉奇),更多章节内容可以访问云栖社区“异步社区”公众号查看

1.4 交换和桥接逻辑
本章至此已经回顾了以太网线缆的详情,以及以太网帧中每个字段的格式和意义。交换机的终极目标是基于帧头中的MAC地址,将这些帧发给适当的目的地。表1-7总结了交换机在转发帧时使用的逻辑,根据目的以太网地址的类型,以及目的地址是否被增加至MAC地址表,交换机使用的逻辑有所不同。


f1461b801c8c1e474c7f76296d99df273d913a1d

例1-2 查看MAC地址表学习过程的命令

Switch1# show mac-address-table dynamic
      Mac Address Table
------------------------------------------

Vla-    Mac Address   Type    Ports
----   -----------    ----    -----
  1   000f.2343.87cd  DYNAMIC  Fa0/13
  1   0200.3333.3333  DYNAMIC  Fa0/3
  1   0200.4444.4444  DYNAMIC  Fa0/13
Total Ma Addresses for this criterion: 3
! Above, Switch1's MAC address table lists three dynamically learned addresses,
! including Switch4's FA 0/13 MAC.
! Below, Switch1 pings Switch4's management IP address.
Switch1# ping 10.1.1.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
! Below Switch1 now knows the MAC address associated with Switch4's management IP
! address. Each switch has a range of reserved MAC addresses, with the first MAC
! being used by the switch IP address, and the rest being assigned in sequence to
! the switch interfaces – note 0xcd (last byte of 2 nd address in the table above)   
! is for Switch4's FA 0/13 interface, and is 13 (decimal) larger than Switch4's
! base MAC address.
Switch1# show mac-address-table dynamic
      Mac Address Table
------------------------------------------

Vlan   Mac Address    Type    Ports
----   -----------    ----    -----
  1   000f.2343.87c0  DYNAMIC  Fa0/13
  1   000f.2343.87cd  DYNAMIC  Fa0/13
  1   0200.3333.3333  DYNAMIC  Fa0/3
  1   0200.4444.4444  DYNAMIC  Fa0/13
Total Mac Addresses for this criterion: 4
! Not shown: PC1 ping 10.1.1.23 (R3) PC1's MAC in its MAC address table
------------------------------------------

Vla-   Mac Address    Type    Ports
----  -----------    ----    -----
  1  000f.2343.87c0  DYNAMIC  Fa0/13
  1  000f.2343.87cd  DYNAMIC  Fa0/13
  1  0010.a49b.6111  DYNAMIC  Fa0/13
  1  0200.3333.3333  DYNAMIC  Fa0/3
  1  0200.4444.4444  DYNAMIC  Fa0/13
Total Mac Addresses for this criterion: 5
! Above, Switch1 learned the PC's MAC address, associated with FA 0/13,
! because the frames sent by the PC came into Switch1 over its FA 0/13.
! Below, Switch4's MAC address table shows PC1's MAC off its FA 0/6
switch4# show mac-address-table dynamic
      Mac Address Table
-------------------------------------------

Vla-    Mac Address    Type    Ports
----    -----------    -------  -----
  1    000a.b7dc.b780  DYNAMIC  Fa0/13
  1    000a.b7dc.b78d  DYNAMIC  Fa0/13
  1    0010.a49b.6111  DYNAMIC  Fa0/6
  1    0200.3333.3333  DYNAMIC  Fa0/13
  1    0200.4444.4444  DYNAMIC  Fa0/4
Total Mac Addresses for this criterion: 5
! Below, for example, the aging timeout (default 300 seconds) is shown, followed     
! by a command just listing the mac address table entry for a single address.     
switch4# show mac-address-table aging-time
Vlan   Aging Time
----   ----------
  1   300
switch4# show mac-address-table address 0200.3333.3333
      Mac Address Table

-------------------------------------------

Vlan   Mac Address    Type      Ports
----   -----------    -------    -----
  1   0200.3333.3333  DYNAMIC    Fa0/13                       
Total Mac Addresses for this criterion: 1
相关文章
|
Java Maven Nacos
Maven - Maven 核心概念一网打尽:轻松掌握项目构建与管理技巧
Maven - Maven 核心概念一网打尽:轻松掌握项目构建与管理技巧
309 0
|
6月前
|
Oracle 关系型数据库 数据库
Activiti 7建表语句及注释
本文提供了Activiti工作流引擎的数据库表结构,适用于Oracle和DM数据库。包含运行时与历史数据表的设计及字段注释,涵盖流程定义、实例、任务、变量、事件监听、附件、意见等核心功能模块。通过这些表结构,可以全面管理流程生命周期中的各类数据。
|
缓存 JavaScript 前端开发
SpringBoot——Thymeleaf中的th:inline(内敛文本text、内敛脚本javascript)
SpringBoot——Thymeleaf中的th:inline(内敛文本text、内敛脚本javascript)
2487 0
SpringBoot——Thymeleaf中的th:inline(内敛文本text、内敛脚本javascript)
|
移动开发 前端开发
基于jeecg-boot的flowable流程历史记录显示修改
基于jeecg-boot的flowable流程历史记录显示修改
355 0
|
Java 应用服务中间件 Apache
Tomcat的基本使用,如何用Maven创建Web项目、开发完成部署的Web项目
Tomcat的基本使用,如何用Maven创建Web项目、开发完成部署的Web项目
334 1
|
编解码 前端开发 JavaScript
Java + SikuliX 基于图像实现自动化测试
一个好玩的图像识别自动化测试工具
1090 1
Java + SikuliX 基于图像实现自动化测试
|
开发者
快速上手:如何在线生成App
现在,越来越多的企业和个人想要拥有一个自己的App,但是对于非开发者来说,如何实现这个目标呢?本文将介绍一种在线生成App的方法——将网页封装成App。
518 0
|
缓存 Java 数据库
Android 性能优化: 请解释ANR(Application Not Responding)是什么,如何避免它?
Android 性能优化: 请解释ANR(Application Not Responding)是什么,如何避免它?
404 0
|
JavaScript
vue全局修改滚动条样式
vue全局修改滚动条样式
558 1
|
Linux
svn踩坑-xxx is not valid as filename in directory
svn踩坑-xxx is not valid as filename in directory
297 0