首页 > 其他分享 >VRRP基础网络

VRRP基础网络

时间:2024-10-07 19:20:23浏览次数:10  
标签:ip default 基础 GigabitEthernet0 网络 VRRP trunk interface port

1、网络拓扑

VRRP基础网络_f5

2、网络配置

AR1:

<ar>display current-configuration  

[V200R003C00]

#

sysname ar

#

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

#

acl number 3000  

rule 5 permit ip  

#

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 100.1.1.2 255.255.255.0  

nat outbound 3000

#

interface GigabitEthernet0/0/1

ip address 40.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/2

ip address 50.1.1.2 255.255.255.0  

#

interface NULL0

#

interface LoopBack0

ip address 1.1.1.1 255.255.255.255  

#

ospf 100 router-id 1.1.1.1  

default-route-advertise always type 1 //引入缺省路由,无论有没有都添加

area 0.0.0.0  

 network 40.1.1.0 0.0.0.255  

 network 50.1.1.0 0.0.0.255  

#

ip route-static 0.0.0.0 0.0.0.0 100.1.1.1

#

user-interface con 0

authentication-mode password

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

<ar>

SW1:

[r1]display current-configuration  

#

sysname r1

#

vlan batch 10 20 30 40 50

#

stp instance 1 root primary

stp instance 2 root secondary

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

stp region-configuration

region-name gd

instance 1 vlan 10 30

instance 2 vlan 20

active region-configuration

#

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 Vlanif10

ip address 10.1.1.1 255.255.255.0

vrrp vrid 1 virtual-ip 10.1.1.254

vrrp vrid 1 priority 120

vrrp vrid 1 preempt-mode timer delay 30

vrrp vrid 1 track interface GigabitEthernet0/0/1 reduced 30

#

interface Vlanif20

ip address 20.1.1.2 255.255.255.0

vrrp vrid 2 virtual-ip 20.1.1.254

#

interface Vlanif40

ip address 40.1.1.1 255.255.255.0

#

interface MEth0/0/1

#

interface Eth-Trunk1

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/1

port link-type access

port default vlan 40

#

interface GigabitEthernet0/0/2

eth-trunk 1

#

interface GigabitEthernet0/0/3

eth-trunk 1

#

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/5

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

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

#

interface GigabitEthernet0/0/24

#

interface NULL0

#

ospf 100 router-id 2.2.2.2

import-route direct

area 0.0.0.0

 network 40.1.1.0 0.0.0.255

#

user-interface con 0

idle-timeout 0 0

user-interface vty 0 4

#

return

[r1]

SW2:

[r2]display current-configuration  

#

sysname r2

#

vlan batch 10 20 30 40 50

#

stp instance 1 root secondary

stp instance 2 root primary

#

cluster enable

ntdp enable

ndp enable

#

drop illegal-mac alarm

#

diffserv domain default

#

stp region-configuration

region-name gd

instance 1 vlan 10 30

instance 2 vlan 20

active region-configuration

#

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 Vlanif10

ip address 10.1.1.2 255.255.255.0

vrrp vrid 1 virtual-ip 10.1.1.254

#

interface Vlanif20

ip address 20.1.1.1 255.255.255.0

vrrp vrid 2 virtual-ip 20.1.1.254

vrrp vrid 2 priority 120

vrrp vrid 2 preempt-mode timer delay 30

vrrp vrid 2 track interface GigabitEthernet0/0/1 reduced 30

#

interface Vlanif50

ip address 50.1.1.1 255.255.255.0

#

interface MEth0/0/1

#

interface Eth-Trunk1

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/1

port link-type access

port default vlan 50

#

interface GigabitEthernet0/0/2

eth-trunk 1

#

interface GigabitEthernet0/0/3

eth-trunk 1

#

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/5

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

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

#

interface GigabitEthernet0/0/24

#

interface NULL0

#

ospf 100 router-id 3.3.3.3

import-route direct

area 0.0.0.0

 network 50.1.1.0 0.0.0.255

#

user-interface con 0

idle-timeout 0 0

user-interface vty 0 4

#

return

[r2]

标签:ip,default,基础,GigabitEthernet0,网络,VRRP,trunk,interface,port
From: https://blog.51cto.com/u_13560030/12182748

相关文章

  • 类和对象基础(3)
    1.构造函数之初始化列表之前我们实现构造函数时,初始化成员变量主要使⽤函数体内赋值,构造函数初始化还有⼀种⽅式,就是初始化列表,初始化列表的使⽤⽅式是以⼀个冒号开始,接着是⼀个以逗号分隔的数据成员列表,每个"成员变量"后⾯跟⼀个放在括号中的初始值或表达式。每个成员变量......
  • 20222315 2024-2025-1 《网络与系统攻防技术》实验一实验报告
    1.实验内容1.掌握反汇编与十六进制编程器2.能正确修改机器指令改变程序执行流程3.能正确构造payload进行bof攻击2.实验过程1.直接修改程序机器指令,改变程序执行流程将pwn1文件下载至kali中并将pwn1文件改名为pwn20222315,并将其内容复制到pwn2反汇编文件objdump-dpwn2022231......
  • Python 高级绘图:从基础到进阶的可视化实践
    在Python中,我们可以使用多种库来进行绘图,其中matplotlib是一个非常强大的绘图库。以下将介绍一些高级的绘图技巧和代码实现:绘制简单折线图importmatplotlib.pyplotaspltx=[1,2,3,4,5]y=[2,4,6,8,10]plt.plot(x,y)plt.xlabel('X轴')plt.ylabel('Y轴')plt......
  • Python 脚本高级编程:从基础到实践
    Python脚本是一种强大的工具,可用于各种任务,从自动化日常工作到处理复杂的数据操作。以下是一些关于Python脚本的高级概念和代码示例。函数的高级用法defcomplex_function(name,age,*args,**kwargs):print(f"Name:{name},Age:{age}")print("Additionalargume......
  • Java基础第八章(多态)
    多态1.方法体现多态方法重载体现多态对象通过传入不同数量的参数,会调用不同的sun方法,体现出多态方法重写体现多态A类和B类是继承关系,通过不同对象调用对应类中重写的方法体现2.对象体现多态编译是javac,运行是java(1)一个对象的编译类型和运行类型可以不一致将父......
  • 20222301 2024-2025-1 《网络与系统攻防技术》实验一实验报告
    一、实验目的本次实践的对象是一个名为pwn1的linux可执行文件。该程序正常执行流程是:main调用foo函数,foo函数会简单回显任何用户输入的字符串。该程序同时包含另一个代码片段,getShell,会返回一个可用Shell。正常情况下这个代码是不会被运行的。我们实践的目标就是想办法运行这个......
  • The 2020 ICPC Asia Shenyang Regional Programming Contest Northeastern University
    The2020ICPCAsiaShenyangRegionalProgrammingContestNortheasternUniversity(SMU2024ICPC网络赛选拔赛2)D.JourneytoUn'Goro思路队友写得,没看。代码#include<bits/stdc++.h>usingnamespacestd;typedeflonglongintll;#defineintlonglong#defineP......
  • 信息学奥赛复赛复习14-CSP-J2021-03网络连接-字符串处理、数据类型溢出、数据结构Map
    PDF文档公众号回复关键字:202410071P7911[CSP-J2021]网络连接[题目描述]TCP/IP协议是网络通信领域的一项重要协议。今天你的任务,就是尝试利用这个协议,还原一个简化后的网络连接场景。在本问题中,计算机分为两大类:服务机(Server)和客户机(Client)。服务机负责建立连接,客户机......
  • 20222427 2024-2025-1 《网络与系统攻防技术》实验一实验报告
    1.实验内容(1)本周学习内容1.学习缓冲区溢出的基本原理。2.重温栈与堆的概念以及执行流程。3.逐步熟悉Linux系统对文件的处理流程,掌握基础的汇编与反汇编语言。(2)本周实验任务1.手工修改可执行文件,改变程序执行流程,直接跳转到getShell函数。2.利用foo函数的Bof漏洞,构造一个攻......
  • 图神经网络GNN 库,液体神经网络LNN/LFM
    图神经网络GNN库:1、PyTorchGeometrichttps://pytorch.org/docs/stable/distributions.html#geometric2、DeepGraphLibrary(DGL)     https://www.dgl.ai/   支持:PyTorch,TensorFloworApacheMXNet.   文档: https://docs.dgl.ai/guide_cn/index.ht......