首页 > 其他分享 >VRRP+单臂路由

VRRP+单臂路由

时间:2023-09-02 22:05:05浏览次数:38  
标签:20 default ip GigabitEthernet0 VRRP user interface 路由 单臂

VRRP+单臂路由_ci

需求

1、PC1为vlan10,ip 10.1.1.10,pc2为vlan20,ip 20.1.1.20

2、sw1交换机为接入交换机,g0/0/1、g0/0/2端口为trunk,创建van 10、20

3、AR2\AR3,为单臂路由,同时负载均衡,使用vrrp技术

配置内容

交换机SW1:

<sw1>display current-configuration  

#

sysname sw1

#

vlan batch 10 20

#

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 GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 10 20

#

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 10 20

#

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

#

interface GigabitEthernet0/0/23

port link-type access

port default vlan 20

#

interface GigabitEthernet0/0/24

port link-type access

port default vlan 10

#

interface NULL0

#

user-interface con 0

idle-timeout 0 0

user-interface vty 0 4

#

return

<sw1>

路由器R2:

<r2>display current-configuration  

[V200R003C00]

#

sysname r2

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load portalpage.zip

#

drop illegal-mac alarm

#

set cpu-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 GigabitEthernet0/0/0

#

interface GigabitEthernet0/0/0.10

dot1q termination vid 10

ip address 10.1.1.1 255.255.255.0  

vrrp vrid 10 virtual-ip 10.1.1.254

vrrp vrid 10 priority 120

arp broadcast enable

#

interface GigabitEthernet0/0/0.20

dot1q termination vid 20

ip address 20.1.1.1 255.255.255.0  

vrrp vrid 20 virtual-ip 20.1.1.254

vrrp vrid 20 priority 110

arp broadcast enable

#

interface GigabitEthernet0/0/1

ip address 30.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

ospf 1 router-id 2.2.2.2  

import-route direct

area 0.0.0.0  

 network 30.1.1.0 0.0.0.255  

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

<r2>

路由器R3

<r3>display current-configuration  

[V200R003C00]

#

sysname r3

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load portalpage.zip

#

drop illegal-mac alarm

#

set cpu-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 GigabitEthernet0/0/0

#

interface GigabitEthernet0/0/0.10

dot1q termination vid 10

ip address 10.1.1.2 255.255.255.0  

vrrp vrid 10 virtual-ip 10.1.1.254

vrrp vrid 10 priority 110

arp broadcast enable

#

interface GigabitEthernet0/0/0.20

dot1q termination vid 20

ip address 20.1.1.2 255.255.255.0  

vrrp vrid 20 virtual-ip 20.1.1.254

vrrp vrid 20 priority 120

arp broadcast enable

#

interface GigabitEthernet0/0/1

ip address 40.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

ospf 1 router-id 3.3.3.3  

import-route direct

area 0.0.0.0  

 network 40.1.1.0 0.0.0.255  

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

<r3>

路由器R1:

<r1>display current-configuration  

[V200R003C00]

#

sysname r1

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load portalpage.zip

#

drop illegal-mac alarm

#

set cpu-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 GigabitEthernet0/0/0

ip address 30.1.1.1 255.255.255.0  

#

interface GigabitEthernet0/0/1

ip address 40.1.1.1 255.255.255.0  

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 1.1.1.1 255.255.255.255  

#

ospf 1 router-id 1.1.1.1  

area 0.0.0.0  

 network 1.1.1.1 0.0.0.0  

 network 30.1.1.0 0.0.0.255  

 network 40.1.1.0 0.0.0.255  

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

<r1>

VRRP+单臂路由_Standard_02

需要解决的问题:数据从R2出,从R3回

标签:20,default,ip,GigabitEthernet0,VRRP,user,interface,路由,单臂
From: https://blog.51cto.com/u_13560030/7334967

相关文章

  • VRRP技术
    前沿局域网中的用户终端通常采用配置一个默认网关的形式访问外部网络,如果此时默认网关设备发生故障,将终端所有用户终端的网络访问,这很可能会给用户带来不可预计的损失,所以可以通过部署多个网关的方式解决单点故障问题,那么如何让多个网关能够协同工作但又不会发时IP地址冲突就成为迫......
  • 动态路由协议
    动态路由协议(1)RIP:路由信息协议(2)OSPF:开放式最短路径优先协议(3)IS-IS:中间系统到中间系统(4)BGP:边界网关协议95.衡量动态路由协议的一些指标(1)正确性(2)快收敛(3)低开销(4)安全性(5)普适性96.RIP跳数:15(跳数大于等于16,则路由不可达)97.使用UDP进行路由信息的交互(1)UDP目标端......
  • 24 路由器,交换机,IP,DNS,子网掩码,网关
    昨天有同志遇到了电脑连接问题,他是在一个大型局域网中,他们的网络交换机没打开自动分配IP的功能,所以IP地址都是手动配置,期间遇到了子网掩码,IP地址,网关,DNS服务器等概念,逐一记录,希望能让所有人看懂。一、交换机主要功能为端口拓展,让你有更多网络端口,扩大局域网接入点。。工作在TCPI......
  • Cisco ISR 4000 Series IOS XE Release Dublin-17.12.1a ED - 思科 4000 系列集成服
    CiscoISR4000SeriesIOSXEReleaseDublin-17.12.1aED思科4000系列集成服务路由器请访问原文链接:https://sysin.org/blog/cisco-isr-4000/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.org思科4000系列集成服务路由器让您的分支机构站点为实施全数字化转型......
  • vue3 路由-导航守卫
    假设用户登录,在地址栏输入了Login,人性化的设计应该自动回到home页面。或者用户输入不存在路由,也应该回到home页面。这个时候需要用到vue-router的导航守卫功能。在我们封装的router.js文件下添加router.beforeEach……constrouter=createRouter({...})router.beforeEach......
  • .NET CORE 终端路由中间件 app.UseEndpoints
    publicvoidConfigureServices(IServiceCollectionservices){services.AddControllers();}publicvoidConfigure(IApplicationBuilderapp,IWebHostEnvironmentenv){app.UseRouting();app.UseAuthorization();app.UseEndpoints......
  • 什么是VRRP?为什么需要VRRP?
    什么是VRRP?虚拟路由冗余协议VRRP(VirtualRouterRedundancyProtocol)是一种用于提高网络可靠性的容错协议。通过VRRP,可以在主机的下一跳设备出现故障时,及时将业务切换到备份设备,从而保障网络通信的连续性和可靠性。目录为什么需要VRRPVRRP的工作原理VRRP应用场景为......
  • Cisco OSPF注入默认路由
    先配置ip然后ospf在路由器一或者路由器二做默认路由下一跳给外部接口或者ip比如说在路由器一就给g0/0或者192.168.10.1在路由器二就给g0/0或者192.168.20.2然后进ospf做一个defo就可以了查看的时候用其余的路由器查看......
  • 【3.0】flask之路由系统
    【一】路由系统基于装饰器fromflaskimportFlaskapp=Flask(__name__)#(1)flask的路由系统基于装饰器#rule:路径#methods:请求方式【列表】#endpoint:别名#@app.route('/detail/<int:nid>',methods=['GET'],endpoint='detail')@app.route('......
  • 网络之路由器交换机的设置
    一、基础知识之(交换机的)虚接口vlan1.端口加入vlan[S1]interfaceGigabitEthernet0/0/1[S1-GigabitEthernet0/0/1]portlink-typeaccess接口模式配置为access模式[S1-GigabitEthernet0/0/1]portdefaultvlan2接口加入vlan2<S1>displayvlan 查看当前配置的vlan ......