vrrp+stp+静态

#

sysname jieru

#

vlan batch 2 to 3

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

drop-profile default

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface MEth0/0/1

#

interface Ethernet0/0/1                    思科:switchportmode access 端口模式设置为access

portlink-type access

portdefault vlan 2                                      switchportaccess vlan 号  端口加入VLAN

#

interface Ethernet0/0/2

portlink-type access

portdefault vlan 3

#

interface Ethernet0/0/3

#

interface Ethernet0/0/4

#

interface Ethernet0/0/5

#

interface Ethernet0/0/6

#

interface Ethernet0/0/7

#

interface Ethernet0/0/8

#

interface Ethernet0/0/9

#

interface Ethernet0/0/10

#

interface Ethernet0/0/11

#

interface Ethernet0/0/12

#

interface Ethernet0/0/13

#

interface Ethernet0/0/14

#

interface Ethernet0/0/15

#

interface Ethernet0/0/16

#

interface Ethernet0/0/17

#

interface Ethernet0/0/18

#

interface Ethernet0/0/19

#

interface Ethernet0/0/20

#

interface Ethernet0/0/21

portlink-type trunk                                    思科:switchportmode trunk端口模式设置为trunk

porttrunk allow-pass vlan 2 to 4094  switchporttrunk allowed vlan all  vlan修剪

#

interface Ethernet0/0/22

portlink-type trunk

porttrunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

user-interface con 0

user-interface vty 0 4

#

Return

#

sysname huiju1

#

vlan batch 2 to 3 5

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

drop-profile default

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface Vlanif2

ipaddress 192.168.2.254 255.255.255.0

vrrpvrid 1 virtual-ip 192.168.2.252     vrrp1 ip 地址 vrrp虚拟网关

#

interface Vlanif3

ipaddress 192.168.3.254 255.255.255.0

vrrpvrid 2 virtual-ip 192.168.3.252

#

interface Vlanif5

ipaddress 192.168.1.1 255.255.255.252

#

interface MEth0/0/1

#

interface Eth-Trunk1

portlink-type trunk

porttrunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/1

portlink-type access

portdefault vlan 5

#

interface GigabitEthernet0/0/2

#

interface GigabitEthernet0/0/3

#

interface GigabitEthernet0/0/4

#

interface GigabitEthernet0/0/5

#

interface GigabitEthernet0/0/6

#

interface GigabitEthernet0/0/7

#

interface GigabitEthernet0/0/8

#

interface GigabitEthernet0/0/9

#

interface GigabitEthernet0/0/10

#

interface GigabitEthernet0/0/11

#

interface GigabitEthernet0/0/12

#

interface GigabitEthernet0/0/13

#

interface GigabitEthernet0/0/14

#

interface GigabitEthernet0/0/15

#

interface GigabitEthernet0/0/16

#

interface GigabitEthernet0/0/17

#

interface GigabitEthernet0/0/18

#

interface GigabitEthernet0/0/19

#

interface GigabitEthernet0/0/20

#

interface GigabitEthernet0/0/21

#

interface GigabitEthernet0/0/22

portlink-type trunk

porttrunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/23

eth-trunk 1

#

interface GigabitEthernet0/0/24

eth-trunk 1

#

interface NULL0

#

ip route-static 192.168.4.0 255.255.255.0192.168.1.2

#

user-interface con 0

user-interface vty 0 4

#

Return

#

sysname huiju2

#

vlan batch 2 to 3 5

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

drop-profile default

#

aaa

authentication-scheme default

authorization-schemedefault

accounting-scheme default

domain default

domain default_admin

local-user admin password simple admin

local-user admin service-type http

#

interface Vlanif1

#

interface Vlanif2

ipaddress 192.168.2.253 255.255.255.0

vrrpvrid 1 virtual-ip 192.168.2.252

#

interface Vlanif3

ipaddress 192.168.3.253 255.255.255.0

vrrpvrid 2 virtual-ip 192.168.3.252

#

interface Vlanif5

ipaddress 192.168.1.5 255.255.255.252

#

interface MEth0/0/1

#

interface Eth-Trunk1

portlink-type trunk

porttrunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/1

portlink-type access

portdefault vlan 5

#

interface GigabitEthernet0/0/2

#

interface GigabitEthernet0/0/3

#

interface GigabitEthernet0/0/4

#

interface GigabitEthernet0/0/5

#

interface GigabitEthernet0/0/6

#

interface GigabitEthernet0/0/7

#

interface GigabitEthernet0/0/8

#

interface GigabitEthernet0/0/9

#

interface GigabitEthernet0/0/10

#

interface GigabitEthernet0/0/11

#

interface GigabitEthernet0/0/12

#

interface GigabitEthernet0/0/13

#

interface GigabitEthernet0/0/14

#

interface GigabitEthernet0/0/15

#

interface GigabitEthernet0/0/16

#

interface GigabitEthernet0/0/17

#

interface GigabitEthernet0/0/18

#

interface GigabitEthernet0/0/19

#

interface GigabitEthernet0/0/20

#

interface GigabitEthernet0/0/21

#

interface GigabitEthernet0/0/22

portlink-type trunk

porttrunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/23

eth-trunk 1

#

interface GigabitEthernet0/0/24

eth-trunk 1

#

interface NULL0

#

ip route-static 192.168.4.0 255.255.255.0192.168.1.6

#

user-interface con 0

user-interface vty 0 4

#

Return

[V200R003C00]

#

sysname route

#

snmp-agent local-engineid800007DB03000000000000

snmp-agent

#

clock timezone China-Standard-Time minus08:00:00

#

portal local-server load portalpage.zip

#

dropillegal-mac alarm

#

vlan batch 2

#

setcpu-usage threshold 80 restore 75

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domain default_admin

local-user admin password cipher%$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$

local-user admin service-type http

#

firewall zone Local

priority 15

#

interface Vlanif2

ipaddress 192.168.4.254 255.255.255.0

#

interface Ethernet0/0/0

portlink-type access

portdefault vlan 2

#

interface Ethernet0/0/1

#

interface Ethernet0/0/2

#

interface Ethernet0/0/3

#

interface Ethernet0/0/4

#

interface Ethernet0/0/5

#

interface Ethernet0/0/6

#

interface Ethernet0/0/7

#

interface GigabitEthernet0/0/0

ipaddress 192.168.1.2 255.255.255.252

#

interface GigabitEthernet0/0/1

ipaddress 192.168.1.6 255.255.255.252

#

interface NULL0

#

ip route-static 192.168.2.0 255.255.255.0192.168.1.1

ip route-static 192.168.2.0 255.255.255.0192.168.1.5

ip route-static 192.168.3.0 255.255.255.0192.168.1.1

ip route-static 192.168.3.0 255.255.255.0192.168.1.5

#

user-interface con 0

authentication-mode password

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

时间: 2024-12-18 21:23:39

vrrp+stp+静态的相关文章

vlan+vrrp+ stp

拓扑图: 配置代码: sw1------------ sys vlan 10 vlan 20 quit int e0/0/1 port link-type access port default vlan 10 int e0/0/2 port link-type access port default vlan 20 int e0/0/3 port link-type trunk port trunk allow-pass vlan all int e0/0/4 port link-type t

华为设备VRRP+MSTP冗余负载均衡实现

拓扑如下: 为方便实验,在AR1.SW1.SW2上都分别配置了RIP协议以便实现路由互通,因为本实验的目的主要是侧重于vrrp+stp的实现,故略去了路由协议的配置. 配置SW1和SW2的链路聚合 SW1配置:[SW1]interface Eth-Trunk 1 //创建并进入链路聚合端口1配置[SW1-Eth-Trunk1]trunkport GigabitEthernet 0/0/23 to 0/0/24 //将g0/0/23和g0/0/24加入到eth-trunk1端口SW2配置:[SW2

十个网络优化改造案例之二- 办公大楼局域网组网案例

主要内容及技术 H3C交换机上架 配置业务VLAN和Trunk接口 配置管理VLAN 关键字:VLAN.Trunk.VRRP.静态路由 前言 为一个分支机构的12层办公大楼组建局域网,看起来好像很复杂,实际上考验的多半是体力活,其主要的工作重点就是把5台H3C 5120交换机和2台H3C S5800全部上架,配置管理VLAN和管理地址.另外,所有的业务网关全部做在H3C 5800上,然后再在H3C 5800上配置静态路由.对于这种交换网络,最核心的技术问题在于VRRP的规划和STP的规划,稍有不

网络设备-锐捷-交换机(S8607E)VSU虚拟化终结配置篇

各位好,前阵子把华为的堆叠.华三的IRF.思科的堆叠都用自己的理解给大家介绍了一遍,今天继续写高可用的交换机技术,这一次是锐捷的VSU,大家随我往下看. 简单截取部分官方的VSU的介绍,大家可以可选的看内容,大致内容如下: VSU(Virtual Switching Unit)是一种网络系统虚拟化技术,支持将多台设备组合成单一的虚拟设备.如下图所示,(我这里做了一些简单的对比)接入.汇聚.核心层设备都可以组成 VSU,形成整网端到端的 VSU 组网方案. 与传统的组网(VRRP+STP)方式相比

keepalived初探

keepalived起初是为LVS设计的,专门用来监控LVS集群系统中各个real server的健康状况的,后来又在其中实现了VRRP协议,VRRP即virtual router redundancy protocol(虚拟路由器冗余协议)的缩写,VRRP的目的是为了解决静态路由出现的单点故障问题,它能够保证网络的不间断.稳定的运行.所以,keepalived一方面具有对服务器进行健康检测的功能,另一方面也具有HA cluster的功能. VRRP通过一种竞选协议来动态的将路由任务交给LAN中

cisco dhcp vlan vtp stp vrrp ospf

ciso dhcp vlan stp vtp vrrp ospf 一.拓扑 二.接口配置 IOU1(config)# hostname dhcp dhcp(config)# int e0/0 dhcp(config-if)# ip add 1.1.1.1 255.255.255.0 dhcp(config-if)# no shut dhcp(config)# int e0/1 dhcp(config-if)# ip add 2.2.2.1 255.255.255.0 dhcp(config-if

stp ,vrrp 的应用

实验名称 :运用stp ,vrrp ospf ,使内网可以访问外网 2.实验拓布图: 4. 实验目的 : 1 .运用生成树协议确定根交换机, 2 .运用vrrp协议,实现网关备份,链路负载均衡 3 .内网可以访问外网 //外网模拟的是三条线路,分别是移动,电信,联通 5.涉及到的技术 : stp  , vrrp  ,ospf #   配置思路 # 首先在sw1,sw3,sw4确定根交换机,确定自己流量的走向,其次再到交换机  sw5 ,sw6,sw2,确定根交换机,确定流量的走向, 然后再配置交

华为设备STP,VRRP应用实验

实验拓扑: 实验目的:应用STP,VRRP:了解环路以及解决:使全网互通 PC1与PC3属于vlan 10:PC2与PC4属于VLAN 20 实验思路:把拓扑图分为三个部分:从底层终端设备开始往上做, 配置步骤:第一部分 1. 配置PC1 与PC2的IP 子网掩码 网关 PC1 192.168.10.1 255.255.255.0 192.168.10.250(网关为虚拟网关,在第三部分体现) 2.配置SW4 在SW4上创建VLAN 10 20; 把gi 1接口配置为access链路,加入VLA

vrrp配置和浮动静态路由

VRRP配置在SW1配置<Huawei>undo terminal monitor //关掉弹出来的信息<Huawei>system-view //进入系统模式[Huawei]sysname SW1 //修改名称[SW1]vlan 10 //创建VLAN 10[SW1-vlan10]quit //退出命令[SW1]port-group group-member g0/0/1 g0/0/2 g0/0/3 //创建组在组里进入接口g0/0/1 g0/0/2 g0/0/3 [SW1-po