首页 > 其他分享 >BGP 的基本配置

BGP 的基本配置

时间:2023-07-29 20:01:03浏览次数:56  
标签:基本 255.255 default 配置 BGP peer user interface local

BGP 的基本配置_Time

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 flash:/portalpage.zip

#

drop illegal-mac alarm

#

wlan ac-global carrier id other ac id 0

#

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

#

isis 100

is-level level-2

cost-style wide

network-entity 49.0001.0010.0100.1001.00

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 13.1.1.1 255.255.255.0  

isis enable 100

#

interface GigabitEthernet0/0/1

ip address 19.1.1.1 255.255.255.0  

#

interface GigabitEthernet0/0/2

ip address 110.1.1.1 255.255.255.0  

#

interface NULL0

#

interface LoopBack0

ip address 1.1.1.1 255.255.255.255  

isis enable 100

#

bgp 200

router-id 1.1.1.1

peer 3.3.3.3 as-number 200  

peer 3.3.3.3 connect-interface LoopBack0

peer 5.5.5.5 as-number 200  

peer 5.5.5.5 connect-interface LoopBack0

peer 19.1.1.9 as-number 300  

peer 110.1.1.10 as-number 400  

#

ipv4-family unicast

 undo synchronization

 peer 3.3.3.3 enable

 peer 3.3.3.3 next-hop-local  

 peer 5.5.5.5 enable

 peer 5.5.5.5 next-hop-local  

 peer 19.1.1.9 enable

 peer 110.1.1.10 enable

#

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]

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 flash:/portalpage.zip

#

drop illegal-mac alarm

#

wlan ac-global carrier id other ac id 0

#

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

#

isis 100

is-level level-2

cost-style wide

network-entity 49.0001.0030.0300.3003.00

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 35.1.1.3 255.255.255.0  

isis enable 100

#

interface GigabitEthernet0/0/1

ip address 13.1.1.2 255.255.255.0  

isis enable 100

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 3.3.3.3 255.255.255.255  

isis enable 100

#

bgp 200

router-id 3.3.3.3

peer 1.1.1.1 as-number 200  

peer 1.1.1.1 connect-interface LoopBack0

peer 5.5.5.5 as-number 200  

peer 5.5.5.5 connect-interface LoopBack0

#

ipv4-family unicast

 undo synchronization

 peer 1.1.1.1 enable

 peer 5.5.5.5 enable

#

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>

R5:

[r5]display current-configuration  

[V200R003C00]

#

sysname r5

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

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

#

portal local-server load flash:/portalpage.zip

#

drop illegal-mac alarm

#

wlan ac-global carrier id other ac id 0

#

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

#

isis 100

is-level level-2

cost-style wide

network-entity 49.0001.0050.0500.5005.00

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 58.1.1.5 255.255.255.0  

isis enable 100

#

interface GigabitEthernet0/0/1

ip address 35.1.1.5 255.255.255.0  

isis enable 100

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 5.5.5.5 255.255.255.0  

isis enable 100

#

bgp 200

router-id 5.5.5.5

undo default ipv4-unicast

peer 1.1.1.1 as-number 200  

peer 1.1.1.1 connect-interface LoopBack0

peer 3.3.3.3 as-number 200  

peer 3.3.3.3 connect-interface LoopBack0

peer 58.1.1.8 as-number 100  

#

ipv4-family unicast

 undo synchronization

 peer 1.1.1.1 enable

 peer 1.1.1.1 next-hop-local  

 peer 3.3.3.3 enable

 peer 3.3.3.3 next-hop-local  

 peer 58.1.1.8 enable

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

[r5]

R7:

[r7]display current-configuration  

[V200R003C00]

#

sysname r7

#

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

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 7.7.7.7 255.255.255.255  

#

bgp 100

undo default ipv4-unicast

peer 8.8.8.8 as-number 100  

peer 8.8.8.8 connect-interface LoopBack0

#

ipv4-family unicast

 undo synchronization

 peer 8.8.8.8 enable

#

ospf 1 router-id 7.7.7.7  

area 0.0.0.0  

 network 7.7.7.7 0.0.0.0  

 network 78.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

[r7]

R8:

[r8]display current-configuration  

[V200R003C00]

#

sysname r8

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

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

#

portal local-server load flash:/portalpage.zip

#

drop illegal-mac alarm

#

wlan ac-global carrier id other ac id 0

#

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

#

interface GigabitEthernet0/0/1

ip address 58.1.1.8 255.255.255.0  

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 8.8.8.8 255.255.255.255  

#

bgp 100

undo default ipv4-unicast

peer 7.7.7.7 as-number 100  

peer 7.7.7.7 connect-interface LoopBack0

peer 58.1.1.5 as-number 200  

#

ipv4-family unicast

 undo synchronization

 peer 7.7.7.7 enable

 peer 7.7.7.7 next-hop-local  

 peer 58.1.1.5 enable

#

ipv6-family unicast

 undo synchronization

#

ospf 1 router-id 8.8.8.8  

area 0.0.0.0  

 network 8.8.8.8 0.0.0.0  

 network 78.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

[r8]

R9:

<r9>display current-configuration  

[V200R003C00]

#

sysname r9

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

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

#

portal local-server load flash:/portalpage.zip

#

drop illegal-mac alarm

#

wlan ac-global carrier id other ac id 0

#

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

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 9.9.9.9 255.255.255.255  

#

bgp 300

router-id 9.9.9.9

undo default ipv4-unicast

peer 19.1.1.1 as-number 200  

#

ipv4-family unicast

 undo synchronization

 peer 19.1.1.1 enable

#

ipv6-family unicast

 undo synchronization

#

user-interface con 0

authentication-mode password

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

<r9>

R10:

<r10>display current-configuration  

[V200R003C00]

#

sysname r10

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

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

#

portal local-server load flash:/portalpage.zip

#

drop illegal-mac alarm

#

wlan ac-global carrier id other ac id 0

#

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

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 10.10.10.10 255.255.255.255  

#

interface LoopBack1

ip address 177.1.1.1 255.255.255.255  

#

bgp 400

router-id 10.10.10.10

undo default ipv4-unicast

peer 110.1.1.1 as-number 200  

#

ipv4-family unicast

 undo synchronization

 network 177.1.0.0  

 network 177.1.1.0 255.255.255.0  

 network 177.1.1.1 255.255.255.255  

 peer 110.1.1.1 enable

#

ipv6-family unicast

 undo synchronization

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

<r10>

注意:使用BGP的前提条件是网络必须可达

BGP 的基本配置_Standard_02


标签:基本,255.255,default,配置,BGP,peer,user,interface,local
From: https://blog.51cto.com/u_13560030/6895085

相关文章

  • Tensorflow数据的基本操作
    #tensorflow里引入一个新的数据类型-张量(tensor),与numpy的ndarray类似,是一个多维数组。和numpy的区别在于:numpy的ndarray只支持CPU计算,而张量支持GPU,可以通过GPU加速,提高速度,同时张量还支持自动微分计算,更适合深度学习##创建数字序列的张量importtensorflowastfx=tf.r......
  • Centos8 中文语言配置支持
    安装中文语言包如果不知道中文语言包,使用以下命令查看[09:39:51]root@ive:~#yumsearchChinese加载插件"osmsplugin"失败:Nomodulenamed'librepo'上次元数据过期检查:0:26:02前,执行于2023年07月29日星期六09时14分49秒。==================================......
  • Django web框架实现nacos【多配置】修改
    Djangoweb框架实现nacos【多配置】修改基于上面一个博客进行功能升级优化,在实际场景中一般会有多个配置需要同时进行修改,上章节功能就不足满足使用了,在此基础上进行功能优化同时修改多个配置进行提交表单。1.安装依赖pipinstallnacos-sdk-pythonPyYAML 2.创建类修......
  • VsCode如何配置C语言环境?
    以前学校上C语言课程都是使用VC++6.0上课,这个学期为了复习一遍C语言,而且自己经常使用VSCode开发前端项目,所以为了方便。这里把需要的环境和插件配置在这里介绍一下。Windows环境下安装C语言编译器MinGW-W64GCCC的下载地址为:https://sourceforge.net/projects/mingw-w64/下载......
  • Django web框架实现修改【单个】nacos配置
    Djangoweb框架实现修改【单个】nacos配置基于上一个博客的Django的项目环境继续添加一些高级的功能——修改nacos配置。简单回顾一下,上面添加的功能:博客网站文章上传、发布,rediskey删除接口。1.首先安装PythonNacos客户端库pipinstallnacos-sdk-python 2.创建n......
  • python的netmiko库备份华为交换机配置
    环境背景可管理华为交换机若干,python3运维安全需求,定期备份网络设备配置步骤安装netmikopip3isntallnetmiko注意netmiko默认的连接超时时间只有10秒钟,需要改conn_timeout大于等于60s。2.编写python脚本fromnetmikoimportConnectHandlerimporttimeimportos#......
  • .NET Core 6.0 自定义异常处理中间件配置
    异常处理的几种方式:1、通过异常过滤器捕获异常进行处理2、自定义异常处理中间件,自定义异常处理中间件,中间件依托于请求管道运行,并且中间件的执行是有序的,与业务隔离开的,将中间件放置在请求管道开始能够捕获到全局异常。 配置异常处理中间件:1、编写自定义异常处理中间件,Cust......
  • QEMU启动RISC-V架构OpenEuler并配置OSC环境
    基于Ubuntu18.04,QEMU8.0.2,OpenEuler22.09安装QEMU安装基础编译工具sudoaptinstallbuild-essentialautoconfautomakeautotools-devpkg-configbccurl\gawkgitbisonflextexinfogperflibtoolpatchutilsmingw-w64libmpc-dev\......
  • JavaScript学习 -- SM3算法基本原理
    SM3算法是一种由国家密码管理局发布的哈希算法,被广泛用于数字签名和消息认证等应用中。在JavaScript中,我们可以使用第三方库来计算数据的SM3哈希值。本篇文章将介绍SM3算法的基本原理和相关技术,并提供一些实例来演示如何在JavaScript中使用SM3算法。SM3算法基本原理与MD5、SHA-1、S......
  • 【LibCurl】HomeBrew 安装 LibCurl & CMake 配置
    LibCurl在官网中明确指出支持HomeBrew进行安装。那么在macOS端的安装就不会想Win下需要根据版本进行编译了,方便许多brewinstallcurl#安装完成后会提示curl在macOS库文件和依赖文件的安装路径CMake配置CMake是一种跨平台的构建工具,可以帮助我们编译、配置......