交换机的MAC地址学习情况:

1.从一个接口收到数据帧,根据数据帧的原mac地址查找交换机的mac地址表,如果没有找到,将会添加数据帧的原mac地址和收到数据帧接口的对应条目,放进交换机的mac地址表里(在MAC有空间的情况下,如果没有空间将不放入,也不替换原有条目)。

2.从一个接口收到数据帧,根据数据帧的原mac地址查找交换机的mac地址表,如果有,检查原有条目中的接口是否和当前收到数据帧的接口一致,如果不一致,将替换原有接口,如果一致,将不做修改。

交换机转发情况:

1.从一个接口收到数据帧,根据数据帧的目的mac地址查找交换机的mac地址表,如果没有找到,将此数据帧复制多份向除了进来的接口以外的所有接口泛洪。

2. 从一个接口收到数据帧,根据数据帧的目的mac地址查找交换机的mac地址表,如果找到,将此数据帧只从mac地址表对应的接口转发出去。

路由器的密码破解:

提前:原有路由器需要保持配置

在设备重启过程中按 CTRL+C

进入rom系统:

rommon 2 > confreg 0x2142  //修改register编码为0x2142,目的跳过把nvram中的startup-config 加载到 rom中变为runing-config

rommon 3 > reset    //重启

路由器进入空配置:

Router#

Router#copy startup-config running-config   //手动的把原来保持的配置,加载成当前配置,原有配置将恢复

Destination filename [running-config]?

%SYS-5-CONFIG_I: Configured from console by console

495 bytes copied in 0.416 secs (1189 bytes/sec)

Router#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#enable password 123  //修改为新密码

Router(config)#config-register 0x2102  //把register编码改回0x2102,实现再次重启加载nvram中的startup-config

Router(config)#end

Router#

%SYS-5-CONFIG_I: Configured from console by console

Router#wr   //  保持修改过后的配置

Building configuration...

[OK]

交换机的密码恢复:

  1. 断电 再 加点
  2. 启动15s内 按 mode ,保持15s system指示灯由绿色变成橙色 ,松开mode
  3. 进入rom 系统提示:   flash_init

load_helper

boot

  1. switch: flash_init
  2. switch: load_helper
  3. switch: rename flash:config.text flash:config.text.old
  4. switch: boot              //重启
  5. Switch> enable
  6. Switch# rename flash:config.text.old flash:config.text
  7. Switch# copy flash:config.text system:running-config
  8. Switch# configure terminal
  9. Switch (config)# enable secret xxxx
  10. Switch (config)# exit
  11. Switch#write

开启交换机VTY远程管理线路:

Switch>en

Switch#conf t

Switch(config)#

Switch(config)#int vlan 1   // 进入二层交换机用来管理设备的接口

Switch(config-if)#ip add 1.1.1.1 255.255.255.0

Switch(config-if)#no sh

Switch(config-if)#exit

Switch(config)#line vty 0 4

Switch(config-line)#password 111

Switch(config-line)#login

Switch(config-line)#end

Vty远程管理线路采用本地用户名、密码的方式登录:

Router>en

Router#conf t

Router(config)#username aa password aa  //定义本地用户数据库

Router(config)#line vty 0 4

Router(config-line)#login local   //设置vty登录模式为本地用户、密码模式登录

Router(config-line)#end

交换机端口安全

Switch>en

Switch#conf t

Switch(config)#int f0/1

Switch(config-if)#switchport mode access  //接口设置为access 模式

Switch(config-if)#switchport port-security     //开启端口安全功能

Switch(config-if)#switchport port-security mac-address 00E0.A394.C22E //绑定一个固定的mac地址

Switch(config-if)#switchport port-security maximum 3  //最大允许访问的mac数量,默认1

Switch(config-if)#switchport port-security violation ?  //如果非法的数据帧到达将采取的行为,默认行为shutdown

protect   Security violation protect mode       默默丢弃该数据帧

restrict  Security violation restrict mode                     丢弃该数据帧,并记录

shutdown  Security violation shutdown mode           关闭接口

 

DHCP服务的配置

Router>en

Router#conf t

Router(config)#service dhcp  //开启DHCP服务

Router(config)#ip dhcp excluded-address 1.1.1.1 1.1.1.10  //排除某些地址

Router(config)#ip dhcp pool A  //定义分配给客户端的地址池

Router(dhcp-config)#network 1.1.1.0 255.255.255.0   //地址池的IP地址范围,及掩码

Router(dhcp-config)#default-router 1.1.1.10                    //客户端收到的默认网关

Router(dhcp-config)#dns-server 12.23.34.45             //客户端收到的dns服务器地址

Router(dhcp-config)#end

CCNA 课程 三的更多相关文章

  1. solr与.net系列课程(三)solr连接数据库

     solr与.net系列课程(三)solr连接数据库 上一章直接讲述的配置文件把大部分人看的很迷惑,大家都想听的是solr到底是怎么用的,好,这一节我们就开始链接数据库,首先讲一下连接之前都要配置哪些 ...

  2. CCNA第三章子网划分,变长子网掩码(VLSM)和TCP/IP排错考试要点学习笔记

    1. 子网划分的好处      缩减网络流量; 优化网络性能; 简化管理; 可以更为灵活地形成大覆盖范围的网络.    2. 如何创建子网的步骤 首先,确认所需要的网络ID数; 其次,确认每个子网中所 ...

  3. Oracle 课程三之表设计

    完成本课程的学习后,您应该能够: •普通堆表优点和缺点 •理解rowid •全局临时表优点.缺点和适用场景 •分区表的类型和原理.优点和缺点.适用场景 •表字段的高效设计 •sequence的设计   ...

  4. 以前学习cisco ccna 课程的时候做的笔记

    由于学习的专业是计算机网络技术,可是在上学的时候,并没有学习到多少网络知识,所以为了对得起学的专业,在06年工作的时候,在哈工大银河教育报了个ccna的班,两个星期的课程,每天上那么几个小时. 结果依 ...

  5. HTML+CSS基础课程三

    1.文字排版--字体 我们可以使用css样式为网页中的文字设置字体.字号.颜色等样式属性.下面我们来看一个例子,下面代码实现:为网页中的文字设置字体为宋体. body{font-family:&quo ...

  6. OpenGL入门学习 课程 (三) 绘制几何图形的一些细节问题

    http://oulehui.blog.163.com/blog/static/79614698201191832753312/ 先回顾一下我们都学习了些什么: 第一课,编写第一个OpenGL程序第二 ...

  7. 课程三(Structuring Machine Learning Projects),第一周(ML strategy(1)) —— 1.Machine learning Flight simulator:Bird recognition in the city of Peacetopia (case study)

    []To help you practice strategies for machine learning, the following exercise will present an in-de ...

  8. CCNA 课程 四

    Vlan基础: Vlan的作用:把物理上分割的用户,让他们逻辑上在一起. Vlan 范围: 0- 4095 0  4095 是保留的 不可以使用 1 cisco 本证vlan 标准vlan 1 -10 ...

  9. CCNA 课程 二

    传输层:两个重要的协议 TCP 和 UDP TCP: 面向连接的协议:在传输用户数据前,先要建立连接 (TCP的三次握手) 错误检查 数据包序列化 可靠性传输:发送的数据需要接受者提供确认,通过报头中 ...

随机推荐

  1. 不在要DLL中使用C++全局对象

    如题,原因很简单,DLL不会调用该对象的析构函数. 果断被微软坑了.

  2. Android-NDK编译

    (2013-12-19  21:48:21 其实一切还是先看看官网的好,乱百度浪费时间.... http://developer.android.com/tools/sdk/ndk/index.htm ...

  3. onload事件,解决不能在head写代码

    <!DOCTYPE html> <html lang="zh-CN"> <head> <meta http-equiv="con ...

  4. JavaScript数据结构与算法-链表练习

    链表的实现 一. 单向链表 // Node类 function Node (element) { this.element = element; this.next = null; } // Link ...

  5. 使用jquery获取单选按钮radio的值

    <input type="radio" name="gender" value="男" >男</input> < ...

  6. CalendarUtil 日期操作工具类

    版权声明:本文为博主原创文章,未经博主允许不得转载. [java] view plain copy import java.util.Calendar; import java.text.DateFo ...

  7. TCustomControl绘制自己和图形子控件共四步,TWinControl关键属性方法速记

    TCustomControl = class(TWinControl) private FCanvas: TCanvas; procedure WMPaint(var Message: TWMPain ...

  8. CF145E Lucky Queries

    CF145E Lucky Queries 英文题面不放了,直接上翻译: 题目描述 给你n个数,每个数是4或者7,给你m个任务完成 switch l r 把[l,r]位置的4换成7,7换成4 count ...

  9. django startapp报 maximum recursion depth exceeded

    报错截图如下: 解决办法:修改指定路径下的functools.py文件的def total_ordering(cls):方法: 原来的样子: convert = { '__lt__': [('__gt ...

  10. python多进程编程(一)

    multiprocessing模块介绍 python中的多线程无法利用多核优势,如果想要充分地使用多核CPU的资源(os.cpu_count()查看),在python中大部分情况需要使用多进程.Pyt ...