作者:邓聪聪

  智能以太保护SEP(Smart Ethernet Protection)是一种专用于以太网链路层的环网协议。SEP是一种以太环路保护机制,它通过有选择性地阻塞网络环路冗余链路,来达到消除网络二层环路的目的,避免报文在环路网络中增生和无限循环,有效防止形成网络风暴。本人刚接手了一套网络,布局也不是太复杂,基本全是2层网络,所以就利用了sep这个小技术。

  实例1:

sysname sw1
#
vlan batch to
#
stp disable
#
sep segment
control-vlan
block port optimal
preempt delay
protected-instance to
sep segment
control-vlan
block port optimal
preempt delay
tc-notify segment
protected-instance to
#
interface Vlanif12
ip address 10.1.1.1 255.255.255.224
#
interface GigabitEthernet0//
port link-type trunk
port trunk allow-pass vlan
stp disable
sep segment
#
interface GigabitEthernet0//
port link-type access
port default vlan
#
interface GigabitEthernet0//
shutdown
port link-type trunk
undo port trunk allow-pass vlan
port trunk allow-pass vlan to
stp disable
sep segment edge primary
#
interface GigabitEthernet0//
shutdown
port link-type trunk
port trunk allow-pass vlan
stp disable
sep segment 10 edge primary
#
sysname sw2
#
stp disable
#
sep segment
control-vlan
protected-instance to
#

  sep segment 11
  control-vlan 100
  block port optimal
  preempt delay 30
  tc-notify segment 5
  protected-instance 0 to 48

interface GigabitEthernet0//
port link-type trunk
undo port trunk allow-pass vlan
port trunk allow-pass vlan
stp disable
sep segment
#
interface GigabitEthernet0//
port link-type trunk
undo port trunk allow-pass vlan
port trunk allow-pass vlan
stp disable
sep segment 5

  interface GigabitEthernet0/0/4
  port link-type trunk
  port trunk allow-pass vlan 11 100
  stp disable
  sep segment 11 edge primary

sysname sw3
#
stp disable
#
sep segment
control-vlan
protected-instance to
sep segment
control-vlan
tc-notify segment
protected-instance to
#
interface Vlanif11
ip address 1.1.1.30 255.255.255.224
#
interface Vlanif12
ip address 10.1.1.2 255.255.255.224
#
interface MEth0//
#
interface GigabitEthernet0//
port link-type access
port default vlan
#
interface GigabitEthernet0//
port link-type trunk
undo port trunk allow-pass vlan
port trunk allow-pass vlan
stp disable
sep segment
#
interface GigabitEthernet0//
port link-type trunk
undo port trunk allow-pass vlan
port trunk allow-pass vlan to
stp disable
sep segment
sep segment priority
#
interface GigabitEthernet0//
port link-type trunk
undo port trunk allow-pass vlan
port trunk allow-pass vlan
stp disable
sep segment
sep segment priority
#
sysname sw4
#
vlan batch
#
stp disable
#
sep segment
control-vlan
protected-instance to
#

  sep segment 11
  control-vlan 100
  tc-notify segment 10
  protected-instance 0 to 48

interface Vlanif11
ip address 1.1.1.4 255.255.255.224
#

interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 11 100
 stp disable
 sep segment 11
 sep segment 11 priority 128

interface GigabitEthernet0//
port link-type trunk
undo port trunk allow-pass vlan
port trunk allow-pass vlan
stp disable
sep segment
#
interface GigabitEthernet0//
port link-type trunk
port trunk allow-pass vlan
stp disable
sep segment
sysname sw5
#
sep segment
control-vlan
protected-instance to
#
interface GigabitEthernet0//
port link-type trunk
port trunk allow-pass vlan
stp disable
sep segment
#
interface GigabitEthernet0//
port link-type trunk
port trunk allow-pass vlan
stp disable
sep segment
#

  实例2:

9306配置:

sep segment 1
control-vlan 4094
block port optimal
preempt delay 30
tc-notify segment 2
protected-instance 0 to 48
sep segment 2
control-vlan 4094
block port optimal
preempt delay 15
tc-notify segment 1
protected-instance 0 to 48
sep segment 3
control-vlan 4090
block port optimal
preempt delay 15
protected-instance 0 to 48
#
interface Vlanif1
ip address 1.1.1.1 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
shutdown
port hybrid tagged vlan 4094
stp disable
sep segment 1 edge secondary
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 4094
stp disable
sep segment 2 edge primary
#
interface GigabitEthernet0/0/3
port hybrid tagged vlan 4094
stp disable
sep segment 1 edge primary
#
interface GigabitEthernet0/0/4
port hybrid tagged vlan 4090
stp disable
sep segment 3 edge primary
#
interface GigabitEthernet0/0/5
port hybrid tagged vlan 4090
stp disable
sep segment 3 edge secondary
#

 

分支1-5700配置:

sep segment
control-vlan
block port optimal
protected-instance to #
interface Vlanif1
ip address 1.1.1.254 255.255.255.0
#
interface MEth0//
#
interface GigabitEthernet0//
port hybrid tagged vlan
stp disable
sep segment
#
interface GigabitEthernet0//
port hybrid tagged vlan
stp disable
sep segment
#

分支3-5700配置:

sep segment 1
control-vlan 4094
tc-notify segment 2
protected-instance 0 to 48
sep segment 2
control-vlan 4094
tc-notify segment 1
protected-instance 0 to 48
#
interface Vlanif1
ip address 1.1.1.2 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 4094
stp disable
sep segment 2 edge secondary
#
interface GigabitEthernet0/0/2
port hybrid tagged vlan 4094
stp disable
sep segment 1
sep segment 1 priority 128
#
interface GigabitEthernet0/0/3
port hybrid tagged vlan 4094
stp disable
sep segment 1
#

分支2-5700配置:

sep segment 2
control-vlan 4094
protected-instance 0 to 48
#
interface Vlanif1
ip address 1.1.1.3 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port hybrid tagged vlan 4094
stp disable
sep segment 2
sep segment 2 priority 128
#
interface GigabitEthernet0/0/2
shutdown
port hybrid tagged vlan 4094
stp disable
sep segment 2

分支1配置:

sep segment
control-vlan
protected-instance to
#
interface Vlanif1
#
interface MEth0//
#
interface GigabitEthernet0//
port hybrid tagged vlan
stp disable
sep segment
#
interface GigabitEthernet0//
port hybrid tagged vlan
stp disable
sep segment
#

分支2配置:

sep segment
control-vlan
protected-instance to
#
interface Vlanif1
ip address 1.1.1.6 255.255.255.0
#
interface MEth0//
#
interface GigabitEthernet0//
port hybrid tagged vlan
stp disable
sep segment
sep segment priority
#
interface GigabitEthernet0//
port hybrid tagged vlan
stp disable
sep segment

二层环路保护,SEP多实例的配置的更多相关文章

  1. 二层环路保护,RRPP多环的配置

    作者:邓聪聪 组网需求: 局域网中,由A/B/C/D构成RRPP域1换网络结构,要求环网机构中的任意两条线路中断都不能影响业务. 配置思路: 环路由两部分组成,ring1.ring2,B为环1的主节点 ...

  2. MSTP多实例的配置

    MSTP多实例的配置 这次实验主要是为了加强对stp生成树协议中,RP(根端口),DP(指定端口),AP(阻塞端口)的判断方法:虽然很多时候不需要我们人工判断,因为当我们吧所有的配置好之后,然后开启生 ...

  3. 《连载 | 物联网框架ServerSuperIO教程》2.服务实例的配置参数说明

    1.C#跨平台物联网通讯框架ServerSuperIO(SSIO)介绍  <连载 | 物联网框架ServerSuperIO教程>1.4种通讯模式机制 一.综述 SuperIO(SIO)定位 ...

  4. mysql多实例的配置和管理

    原文地址:mysql多实例的配置和管理 作者:飞鸿无痕 多实例mysql的安装和管理 mysql的多实例有两种方式可以实现,两种方式各有利弊.第一种是使用多个配置文件启动不同的进程来实现多实例,这种方 ...

  5. 第十七章——配置SQLServer(4)——优化SQLServer实例的配置

    原文:第十七章--配置SQLServer(4)--优化SQLServer实例的配置 前言: Sp_configure 可以用于管理和优化SQLServer资源,而且绝大部分配置都可以使用SQLServ ...

  6. SuperSocket入门(三)-Telnet多服务实例和服务实例交互配置详解

        在SuperSocket入门(二)中我们已经简单了解了通过配置App.config文件使用BootStrap启动SuperSocket服务.我们先来看一下上个案例中的基本配置文件示例: < ...

  7. oracle 单实例DG(配置篇二)

    一,DG搭建实例--主库配置 one : 归档配置 01,查看归档  1 select log_mode,force_logging from v$database; 02,开启归档 关闭数据库重新启 ...

  8. Amazon EC2安装mysql多实例并配置主从复制

    1.MySQL安装: EC2直接使用yum安装mysql很方便: yum install mysql mysql-server mysql-libs 此处安装了三个包 完事之后可以直接使用 servi ...

  9. 基于mysqld_multi实现MySQL 5.7.24多实例多进程配置

    学习环境: 操作系统 IP地址 主机名 软件包 备注 CentOS7.5 192.168.200.111 localhost       实验初始配置:所有主机关闭防火墙与selinux [root@ ...

随机推荐

  1. SVN简单的使用

    一.什么是SVN有什么用? SVN是Subversion的简称,是一个开放源代码的版本控制系统.主要是用于团队开发中的资源共享和团队协作. 二.SVN服务器的安装 1.下载安装文件 在下面地址下载Vi ...

  2. Docker记录-Docker部署记录

    1.Docker介绍 Docker 是一个开源的应用容器引擎,基于 Go 语言 并遵从Apache2.0协议开源. Docker 可以让开发者打包他们的应用以及依赖包到一个轻量级.可移植的容器中,然后 ...

  3. [NIO-1]缓冲区

    常用的是ByteBuffer.CharBuffer

  4. jQuery图片灯箱和视频灯箱

    在一些前端页面中经常需要文件上传,为了美观,我们经常做一个灯箱来显示我们选择的文件, 而不是简单的input标签. html 代码:这个是多图片上传 <div class="layui ...

  5. Tomcat、Weblogic、WebSphere、JBoss服务器的选择

    一.应用点 Tomcat是Apache基金会提供的Servlet容器,它支持JSP, Servlet和JDBC等J2EE关键技术,所以用户可以用Tomcat开发基于数据库,Servlet和JSP页面的 ...

  6. MySQL中innodb_flush_log_at_trx_commit的设置

    innodb_flush_log_at_trx_commit=0,在提交事务时,InnoDB不会立即触发将缓存日志写到磁盘文件的操作,而是每秒触发一次缓存日志回写磁盘操作,并调用操作系统fsync刷新 ...

  7. c/c++gdb下和发布版本下输出地址不同

    相差4字节 相差8个字节 原因: 这4个字节是优化掉了,64位操作系统,函数传参通过寄存器,减少了栈的使用 debug模式下,abc的地址都存下来了.

  8. Java中的AES加解密

    直接上代码,Base64使用的是Java8的方法,如没有,替换即可 KEY:即密码 IV:即偏移量,可自订,十六位 加密方式:AES/CBC/PKCS5Padding,128位加密 如果想用256位和 ...

  9. Windows下 OpenSSL DES加密配置

    1.简介:OpenSSL项目是一个协作开发一个健壮的,商业级的,全功能的,并且开放源代码工具包,它实现了安全套接字层(SSL v2/v3)和传输层安全(TLS v1)协议以及全强大的通用加密库. 2. ...

  10. 嫁给程序员的好处,你get到了吗?

    首先,我们要知道,什么是程序员?程序员是做什么的? "程序员(英文Programmer)是从事程序开发.维护的专业人员.一般将程序员分为程序设计人员和程序编码人员,但两者的界限并不非常清楚, ...