首页 > 其他分享 >set ip next-hop verify-availabitity

set ip next-hop verify-availabitity

时间:2022-11-21 23:03:05浏览次数:44  
标签:set availabitity auto no ip 192.168 address interface


set ip next-hop verify-availabitity  


 R2配置

set ip next-hop verify-availabitity  让路由器搜索CDP邻居表来验证下一跳地址是否在列表中,如果不在,
                                     则策略路由被拒绝,数据包将按常规被转发。

r2#show run
Building configuration...

Current configuration : 1594 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
interface FastEthernet0/0
 ip address 192.168.2.2 255.255.255.0
 duplex auto
 speed auto
!         
interface FastEthernet1/0
 ip address 192.168.3.1 255.255.255.0
 ip policy route-map a
 duplex auto
 speed auto
!         
interface FastEthernet2/0
 ip address 192.168.4.1 255.255.255.0
 ip policy route-map a
 duplex auto
 speed auto
!         
interface Serial3/0
 ip address 192.168.7.1 255.255.255.0
 serial restart-delay 0
!         
interface Serial3/1
 no ip address
 shutdown 
 serial restart-delay 0
!         
interface Serial3/2
 no ip address
 shutdown 
 serial restart-delay 0
!         
interface Serial3/3
 no ip address
 shutdown 
 serial restart-delay 0
!         
router eigrp 10
 passive-interface FastEthernet1/0
 passive-interface FastEthernet2/0
 network 192.168.2.0
 network 192.168.3.0
 network 192.168.4.0
 network 192.168.7.0
 no auto-summary
!         
ip http server
no ip http secure-server
!         
ip forward-protocol nd
!         
!         
access-list 1 permit 192.168.4.0 0.0.0.255
!         
route-map a permit 10
 match ip address 1
 set ip next-hop 192.168.7.1
 set ip next-hop verify-availability 
!         
!         
!         
!         
control-plane
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
line con 0
          

r1#show run
Building configuration...

Current configuration : 1409 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
interface FastEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 ip policy route-map a
 duplex auto
 speed auto
!         
interface FastEthernet1/0
 ip address 192.168.2.1 255.255.255.0
 duplex auto
 speed auto
!         
interface Serial2/0
 ip address 192.168.5.1 255.255.255.0
 serial restart-delay 0
!         
interface Serial2/1
 no ip address
 shutdown 
 serial restart-delay 0
!         
interface Serial2/2
 no ip address
 shutdown 
 serial restart-delay 0
!         
interface Serial2/3
 no ip address
 shutdown 
 serial restart-delay 0
!         
router eigrp 10
 passive-interface FastEthernet0/0
 network 192.168.1.0
 network 192.168.2.0
 network 192.168.5.0
 no auto-summary
!         
ip http server
no ip http secure-server
!         
ip forward-protocol nd
!         
!         
access-list 100 permit icmp 192.168.1.0 0.0.0.255 192.168.4.0 0.0.0.255
access-list 100 permit ip 192.168.1.0 0.0.0.255 192.168.4.0 0.0.0.255
!         
route-map a permit 10
 match ip address 100
 set ip next-hop 192.168.5.2
 set ip next-hop verify-availability 
!         
!         
!         
control-plane
!         
!         
!         
!         
!         
!         
!         
!         
!         
!         
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login    
!         
!         
end      

标签:set,availabitity,auto,no,ip,192.168,address,interface
From: https://blog.51cto.com/drennetwork/5875419

相关文章

  • 那些基于Eclipse的嵌入式开发环境
    ​ARMDevelopmentStudio5(DS-5)FreescaleCodeWarriorDevelopmentTools,被NXP收购NXPLPCXpresso​,已更名为MCUXpressoIDETICodeComposerStudio(CCS)Analog......
  • NOIP2022 游记
    \(\text{Preface}\)和\(\text{CSP}\)游记一样也是边备战边写,为了防止\(\text{NOIP}\)后把这些都忘了写不出来。因为在自己学校考所以没\(\text{CSP}\)游记水,就当做......
  • Pod控制器详解(StatefulSet)
    StatefulSet(有状态)概述无状态应用:认为Pod都是一样的。没有顺序要求。不用考虑在哪个Node节点上运行。随意进行伸缩和扩展。有状态应用:有顺序的要求。认为每个......
  • nexus-maven-repository-index.zip手动下载与设置
    问题描述:在启动eclipse的时候,在maven控制台经常会看到更新nexus-maven-repository-index.zip,用eclipse更新速度会很慢,甚至有不能完成下载的情况;问题解决:1.在你的eclipse......
  • Creating Dynamic Web Project using Maven in Eclipse
    WhileusingMavenasbuildtoolinourproject,IfounditverydifficulttocreateaDynamicWebProjectwhichsupports​​Mavendependencies​​andcanexec......
  • maven2创建一个eclipse工程,设置M2_REPO
    用maven创建一个支持eclipse的工程非常简单,在mvn的项目目录下:mvneclipse:eclipse即可。再打开eclipse->import->General:ExistingProjectsintoWorkspace->包含该工程......
  • JavaScript基础(二)
    JavaScript基础第04天笔记1-数组1.1数组的概念数组可以把一组相关的数据一起存放,并提供方便的访问(获取)方式。数组是指一组数据的集合,其中的每个数据被称作元素,在......
  • javascript - 练习题:事件练习 - 扫雷
    HTML<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge"><metaname="viewport"content="w......
  • Spring-IoC中Set和构造器注入
     新建Maven工程  修改pom文件1<?xmlversion="1.0"encoding="UTF-8"?>2<projectxmlns="http://maven.apache.org/POM/4.0.0"3xmlns:xsi="http......
  • Unity3D BuildPipeline.BuildPlayer打包后没有.exe文件
    Unity3DBuildPipeline.BuildPlayer打包后没有.exe文件最近在使用代码进行打包,打包成功了,却没有没有可执行文件。官方代码如下BuildPlayerOptionsbuildPlayer......