首页 > 其他分享 >NEXT-HOP-LOCAL的作用

NEXT-HOP-LOCAL的作用

时间:2024-01-04 14:33:12浏览次数:35  
标签:1.1 default LOCAL NEXT peer user HOP interface local

1、实验拓扑

NEXT-HOP-LOCAL的作用_R3

2、实验目的

1)R1没有配置next-hop-local,观察R2中的bgp路由表中ebgp引入路由的下一跳

2)1)R1配置next-hop-local,观察R2中的bgp路由表中ebgp引入路由的下一跳

3、实验配置

R1:

[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

#

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

#

interface GigabitEthernet0/0/1

ip address 20.1.1.1 255.255.255.0  

isis enable 100

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 1.1.1.1 255.255.255.255  

isis enable 100

#

bgp 100

router-id 1.1.1.1

peer 2.2.2.2 as-number 100  

peer 2.2.2.2 connect-interface LoopBack0

peer 10.1.1.2 as-number 200  

peer 10.1.1.2 ebgp-max-hop 2  

#

ipv4-family unicast

 undo synchronization

 peer 2.2.2.2 enable

 peer 2.2.2.2 next-hop-local  

 peer 10.1.1.2 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

<R1> 

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

#

isis 100

is-level level-2

cost-style wide

network-entity 49.0001.0020.0200.2002.00

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 20.1.1.2 255.255.255.0  

isis enable 100

#

interface GigabitEthernet0/0/1

ip address 30.1.1.1 255.255.255.0  

isis enable 100

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 2.2.2.2 255.255.255.255  

isis enable 100

#

bgp 100

router-id 2.2.2.2

peer 1.1.1.1 as-number 100  

peer 1.1.1.1 connect-interface LoopBack0

peer 3.3.3.3 as-number 100  

peer 3.3.3.3 connect-interface LoopBack0

#

ipv4-family unicast

 undo synchronization

 peer 1.1.1.1 enable

 peer 1.1.1.1 reflect-client

 peer 3.3.3.3 enable

 peer 3.3.3.3 reflect-client

#

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

#

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

isis enable 100

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 3.3.3.3 255.255.255.255  

isis enable 100

#

bgp 100

router-id 3.3.3.3

peer 2.2.2.2 as-number 100  

peer 2.2.2.2 connect-interface LoopBack0

#

ipv4-family unicast

 undo synchronization

 peer 2.2.2.2 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>

R4:

<R4>display current-configuration  

[V200R003C00]

#

sysname R4

#

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

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 192.168.1.1 255.255.255.255  

#

interface LoopBack1

ip address 4.4.4.4 255.255.255.255  

#

bgp 200

router-id 4.4.4.4

peer 10.1.1.1 as-number 100  

peer 10.1.1.1 ebgp-max-hop 2  

#

ipv4-family unicast

 undo synchronization

 network 192.168.1.1 255.255.255.255  

 peer 10.1.1.1 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

<R4>

4、实验结果

1)R1没有配置next-hop-local

NEXT-HOP-LOCAL的作用_边界路由器_02

2)配置next-hop-local(下一跳本地)

NEXT-HOP-LOCAL的作用_R3_03

5、知识点总结

边界路由器从EBGP的对等体中学习到的路由,在传递的过程中下一跳地址为边界路由器对等体的出接口地址。导致IBGP中除了此边界路由器外,其他路由器学到的此路由的下一跳均为边界路由器对等体的出接口地址;只有配置了next-hop-local后,其他路由器学到的此路由的下一跳改编为边界路由器的ip地址


标签:1.1,default,LOCAL,NEXT,peer,user,HOP,interface,local
From: https://blog.51cto.com/u_13560030/9101054

相关文章

  • Python实现post请求虾皮shopee商品列表API
    Shopee平台商品列表数据接口是一种用于获取Shopee平台上商品列表信息的API接口。通过调用该接口,用户可以获取到商品的基本信息,如商品ID、商品名称、商品价格等。以下是一个示例的Shopee平台商品列表数据接口的请求和返回示例:Shopee.item_search-获取虾皮商品列表数据接口返回值说明......
  • ThreadLocal:你不知道的优化技巧,Android开发者都在用
    引言在Android开发中,多线程是一个常见的话题。为了有效地处理多线程的并发问题,Android提供了一些工具和机制。其中,ThreadLocal是一个强大的工具,它可以使得每个线程都拥有自己独立的变量副本,从而避免了线程安全问题。本文将深入探讨Android中的ThreadLocal原理及其使用技巧,帮助你更......
  • Vue异步更新和$nextTick函数
    Vue是异步dom对象更新的需求:编辑标题,编辑框自动聚焦1:点击编辑,显示编辑框2:让编辑框,立刻获取焦点可以使用$nextTick函数加载完dom之后触发想要操作dom的方法<template><div><divv-if="flag"><inputtype="text"v-model="username"ref="inp"&......
  • MD-NEXT 2.0 (Windows) - 移动取证软件
    MD-NEXT2.0(Windows)-移动取证软件MobileForensicSoftware请访问原文链接:https://sysin.org/blog/md-next/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.orgMD-NEXT-移动取证软件适用于智能手机、功能手机、无人机、智能电视、可穿戴设备、物联网设备、USIM......
  • MAC下载MySQL5.7:Can't connect to local MySQL server through socket '/tmp/mysql.so
    1.错误描述错误截图如下所示:3.扩展MySQL服务启动、关闭、重启命令:启动MySQL服务:sudo/usr/local/mysql/support-files/mysql.serverstart停止MySQL服务:sudo/usr/local/mysql/support-files/mysql.serverstop重启MySQL服务:sudo/usr/local/mysql/support-files/mysql.serverr......
  • 【HBase】:Could not start ZK with 3 ZK servers in local mode deployment.
    CouldnotstartZKwith3ZKserversinlocalmodedeployment.Abortingasclients(e.g.shell)willnotbeabletofindthisZKquorum.控制台报错:这个错误表明在启动HBase时,尝试以本地模式部署(localmodedeployment)的方式启动ZooKeeper失败。HBase中的ZooKee......
  • Adobe Photoshop 2024 v25.0 (macOS, Windows) 发布 - 照片和设计软件
    AdobePhotoshop2024v25.0(macOS,Windows)-照片和设计软件Acrobat、AfterEffects、Animate、Audition、Bridge、CharacterAnimator、Dimension、Dreamweaver、Illustrator、InCopy、InDesign、LightroomClassic、MediaEncoder、Photoshop、PremierePro、AdobeXD作者主......
  • Adobe Photoshop 2024 v25.3 (macOS, Windows) - 照片和设计软件
    AdobePhotoshop2024v25.3(macOS,Windows)-照片和设计软件Acrobat、AfterEffects、Animate、Audition、Bridge、CharacterAnimator、Dimension、Dreamweaver、Illustrator、InCopy、InDesign、LightroomClassic、MediaEncoder、Photoshop、PremierePro、AdobeXD请访问......
  • Shell - Pass output as argument to next command
     Inbashwecanpasstheoutputofonecommandtothenextoneasanargument.Wewillcovermultipleexamples.xargs isveryusefulforpassinginformationbetweencommandswhenchainingisusedinBash:echo-e"Python\nJava"|xargs-I{}e......
  • Nextjs SyntaxError: Cannot use import statement outside a module错误
    NextJs报 SyntaxError:Cannotuseimportstatementoutsideamodule第三方依赖不能导入问题 解决方案:1,Next.JS13.1+,可以使用next.config.js中的属性transpilePackagesconstnextConfig={transpilePackages:['the-npm-package'],//第三方的依赖};module.expo......