首页 > 其他分享 >静态路由注入ospf

静态路由注入ospf

时间:2023-08-02 12:06:47浏览次数:28  
标签:255.255 静态 local GigabitEthernet0 default user interface ospf 路由

静态路由注入ospf_ci

1、ospf静态注入不允许是默认静态路由

2、中间节点不会自动联通,需要路由才会联通

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

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 12.1.1.1 255.255.255.0  

#

interface GigabitEthernet0/0/1

ip address 192.168.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 100 router-id 1.1.1.1  

import-route direct

area 0.0.0.0  

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


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

#

interface GigabitEthernet0/0/1

ip address 23.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 2.2.2.2 255.255.255.255  

#

ospf 100 router-id 2.2.2.2  

import-route static

area 0.0.0.0  

 network 12.1.1.0 0.0.0.255  

#

ip route-static 3.3.3.3 255.255.255.255 GigabitEthernet0/0/1 23.1.1.3

#

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

ip address 23.1.1.3 255.255.255.0  

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 3.3.3.3 255.255.255.255  

#

ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0 23.1.1.2

#

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>

标签:255.255,静态,local,GigabitEthernet0,default,user,interface,ospf,路由
From: https://blog.51cto.com/u_13560030/6935700

相关文章

  • vue3路由的两种引入方式useRouter和router进行页面跳转
    1.在vue3中有两种路由的引入方式第一种import{useRouter}from'vue-router'constuse_router=useRouter()use_router.push('/pathName')第二种importrouterfrom'@/router'router.push('/pathName') 2.两种方式的区别2.1.第一种方式的使用位置在vue......
  • 软路由3 卓凌工控 j6412
    配置j6412、双内存槽最大32x2=64g、4x2.5G网口、1xm2、1xsata价格202304、x宝、750、准系统有sata一体线、外置8寸风扇稳定性听说n5xx跑虚拟机有bug,又n100这代只能单个卡槽装32g,所以入j6412,内存也不太挑,鱼竿厂光威、玖合都可以。但是基本吃灰状态没怎么用,而且j64......
  • 路由层
    url函数的使用(支持正则表达式)Django1中使用的是url:url('test',views.test)url函数第一个参数是支持正则表达式的,如果匹配到一个路由就不再往下匹配,直接执行相对应的函数。 正是因为支持正则,在匹配到testadd也会展示text的页面,因为在检测到test的时候就直接进入test......
  • 将解锁Wi-Fi 7满血 五千元内最强:小米万兆路由史低1499元
    想买高端路由器的了就别看Wi-Fi6了,国内推Wi-Fi7也不远了,小米推出的小米万兆路由不仅号称5000元内最强,而且官方承诺OTA升级支持Wi-Fi7,到时候就是满血状态了。小米万兆路由首发报价1799元,此前可以做到1599元,现在聚划算百亿补贴可以做到1499元,史低价了,推荐入手。参与方法就是在......
  • Tabby:连接VirtualBox上配置的静态IP双网卡
    前情提要通过VirtualBox:设置默认IP双网卡-ShineLe-博客园配置了双网卡,均为静态IP,一个仅主机,一个NAT仅主机IP:192.168.10.11/24NAT:10.0.0.11/24之后我在用Tabby连接时碰到了一系列问题:两台机器能互相ping通,但却无法telnet也无法ssh;SSHConnectingto192.168.10.11......
  • Vue进阶(幺叁捌):vue 路由传参的几种基本方式
    (文章目录)一、动态路由(页面刷新数据不丢失)methods:{insurance(id){//直接调用$router.push实现携带参数的跳转this.$router.push({path:`/particulars/${id}`,})}路由配置{path:'/particulars/:id',name:'particulars',......
  • 登录认证装饰器,flask配置文件,路由系统
    0登录认证装饰器#0装饰器的本质原理 -#类装饰器:1装饰类的装饰器2类作为装饰器#1装饰器使用位置,顺序#3flask路由下加装饰器,一定要加endpoint -如果不指定endpoint,反向解析的名字都是函数名,不加装饰器没有问题,就是正常函数index,detail-如果加了装饰器---》in......
  • 结合前端实现ORM对数据的增删改查、动静态网页,Django创建表关系、请求生命周期流程图
    通过结合前端页面实现ORM对数据的增删改查写一个页面,把数据库中的数据以表格的形式展示出来,然后在每一行的后面加两个按钮,分别是修改、删除的按钮。1.先创建一张UserInfo表格:在Django中没有提供tinyint、smallint,就只提供了int和bigint,如果想要写其他类型,需要自己定义......
  • 静态代码测试多语言特长生 Klocwork 2023.2更新快讯
    随着2023.2的发布,Klocwork为C、C++、C#、Java和JavaScript分析提供了更新和改进。MISRAC:2012AMD2覆盖率和DISASTIGASDC/C++高严重性规则覆盖率高达83%。还引入了针对C语言检查器的附加路径分析。 Validate平台现在具有增强的问题浏览和筛选功能。 其他增强......
  • Cocoapods同时导入静态库和动态库
    platform:ios,'14.1'target:'LGNetworkManager'douse_frameworks!#静态库、动态库#指定需要被编译成static_framework的库$static_framework=['AFNetworking']pre_installdo|installer|installer.pod_targets.eachdo|pod|......