配置带有VRF的OSPFv3邻居

1.OSPFv3的IPv4  AF邻居

R1(config)#ipv6 unicast-routing

R1(config)#router ospfv3 1

R1(config-router)#address-family ipv4

R1(config)#int e0/0

R1(config-if)#ip add 12.12.12.1 255.255.255.0

R1(config-if)#ipv6 enable

R1(config-if)#ospfv3 1 ipv4 a 0   //无地址,无ipv6 enable不能把ipv4和OSPFV3进程关联

R1(config)#int loo1

R1(config-if)#ip add 1.1.1.1 255.255.255.0

R1(config-if)#ipv6 enable

R1(config-if)#ospfv3 1 ipv4 a 0

对端命令相似

2.OSPFv3的IPv6  AF邻居

在上面配置好的基础之上

R1(config)#router ospfv3 1

R1(config-router)#address-family ipv6

R1(config)#int e0/0

R1(config-if)#ipv6 add 2001:1111:111::1/64

R1(config-if)#ospfv3 1 ipv6 a 0

对端命令类似

3.带有VRF的OSPFv3 IPv4  单边AF邻居

R1(config)#ip vrf A

R1(config-vrf)#rd 1:1

R1(config)#int e0/0

R1(config-if)#ip vrf f

R1(config-if)#ip vrf forwarding A

R1(config)#router ospfv3 1

R1(config-router)#address-family ipv4 vrf A  //OSPFV3进程关联ipv4 VRF

R1(config)#int e0/0

R1(config-if)#ip add 12.12.12.1 255.255.255.0

R1(config-if)#ipv6 en

R1(config-if)#ospfv3 1 ipv4 a 0

R1(config)#int loo1

R1(config-if)#ip vrf forwarding A

R1(config-if)#ip add 1.1.1.1 255.255.255.0

R1(config-if)#ipv6 en

R1(config-if)#ospfv3 1 ipv4 a 0

R2(config)#int e0/0

R2(config-if)#ipv6 en

R2(config-if)#ip add 12.12.12.2 255.255.255.0

R2(config-if)#ospfv3 1 ipv4 a 0

R2(config)#int loo1

R2(config-if)#ip add 2.2.2.2 255.255.255.0

R2(config-if)#ipv6 en

R2(config-if)#ospfv3 1 ipv4 a 0

4.双边起AF邻居,在R2上也做 ipv4 VRF

R2(config)#ip vrf B

R2(config-vrf)#rd 2:2

R2(config)#int e0/0

R2(config-if)#ip vrf forwarding B  //加入VRF后,配置好地址就没了,要重新配置

R2(config-if)#ip add 12.12.12.2 255.255.255.0

R2(config-if)#ipv6 enable

R2(config-if)#ospfv3 1 ipv4 a 0

R2(config)#int loo1

R2(config-if)#ip vrf forwarding B

R2(config-if)#ip add 2.2.2.2 255.255.255.0

R2(config-if)#ipv6 en

R2(config-if)#ospfv3 1 ipv4 a 0

所有路由条目只能通过VRF学到

5.带有VRF的OSPFv3 双边AF邻居

Router(config)#vrf def

Router(config)#vrf definition cisco

Router(config-vrf)#rd 1:1

Router(config-vrf)#address-family ipv6

Router(config)#ipv6 unicast-routing

Router(config)#router ospfv3 1

Router(config)#router ospfv3 1

Router(config-router)#address-family ipv6 vrf cisco

Router(config-router)#router-id 1.1.1.1 //RID不会自己选举,需要手动指定

Router(config)#int e0/0

Router(config-if)#vrf forwarding cisco

Router(config-if)#ipv6 add 2001:1111:1111::1/64

Router(config-if)#ospfv3 1 ipv6 a 0

Router(config-if)#no shut  //接口默认是关闭的

对端命令类似

现在把R2 改成IP VRF A

这说明IP  VRG是没办法和IPV6 OSPFV3进程关联的

但是vrf definition cisco可以

6.两种VRF的OSPFv ipv4 AF邻居

R1(config)#ip vrf A

R1(config-vrf)#rd 1:1

R1(config)#router ospfv3 1

R1(config-router)#address-family ipv4 vrf A

R1(config)#int e0/0

R1(config-if)#ipv6 en

R1(config-if)#ip vrf forwarding A

R1(config-if)#ip add 12.12.12.1 255.255.255.0

R1(config-if)#ospfv3 1 ipv4  a 0

接口自动开启

R2(config)#vrf definition cisco

R2(config-vrf)#rd 2:2

R2(config-vrf)#address-family ipv6  //不把ipv6和VRF 关联起来 在接口下VRF是不能和OSPFV3关联起来的

R2(config-vrf)#address-family ipv4

R2(config)#router ospfv3 1

R2(config-router)#router-id 2.2.2.2

R2(config-router)#address-family ipv4 vrf cisco

R2(config)#int e0/0

R2(config-if)#vrf forwarding cisco

R2(config-if)#ipv6 en

R2(config-if)#ip add 12.12.12.2 255.255.255.0

R2(config-if)#ospfv3 1 ipv4 a 0  //把OSPFV3和ipv4 VRF关联起来

时间: 2025-01-02 18:58:19

配置带有VRF的OSPFv3邻居的相关文章

CentOS+Nginx+PHP+MySQL详细配置(带有图解)

一.安装MySQL 目前web服务器已经很少有跑静态页面的,如果要跑动态网站那当然就离不开数据库,虽然在以前文章中有写MySQL是怎么安装的,但是感觉好久没装MySQL,现在只把步骤贴出来,就不做过多的讲解了 #useradd mysql #tar zxvf mysql-5.0.40.tar.gz #cd mysql-5.0.40 #./configure --prefix=/usr/local/mysql #make && make install #/usr/local/mysql/b

tomcat https/ssl 服务配置(带有双向验证,windows,linux平台验证通过)

1. 创建服务器密钥,其密钥库为 /home/gr/server.ks PS1: 注意keypass和storepass保持一致,它们分别代表 密钥密码和密钥库密码, PS2: 注意 CN=localhost 中,localhost表示要配置SSL的主机名,不能任意指定 ~$keytool -genkey -v -alias serverKey -dname "CN=192.168.10.101" -keyalg RSA -keypass 123456 -keystore server

使用nginx配置带有权限验证的反向代理

环境:centos6u3 1.安装nginx (1)上传nginx nginx-1.14.0.tar.gz.可以从nginx官网下载http://nginx.org/en/download.html (2)解压 tar zxvf nginx-1.14.0.tar.gz (3)安装依赖包: yum install gcc gcc-c++ glibc automake pcre zlip zlib-devel openssl-devel pcre-devel wget lrzsz (4)配置账号:

校园网IPV6 OSPFv3协议和DHCPv6配置总结

本配置适用于H3C S12500-CMW520-R1825P01及H3C S5800-CMW520-R1211. 一.IPV6 OSPFv3协议配置 OSPFv3主要启用对IPV6协议的支持: 配置OSPFv3,必须手动指定router id,建议配置为lookback0地址. 12508配置如下: [12500]ospfv3 [12500-ospfv3-1]router-id 10.10.10.1 [12500-ospfv3-1]quit [12500]interface Vlan-inter

OSPFv3实验配置(GNS3)

实验目的 1. 掌握 OSPFv3(v2) 的配置方法 2. 掌握在帧中继环境下 OSPFv3 (v2)的配置方法 3. 掌握 OSPFv3(v2) NSSA 的配置方法 4. 掌握外部路由汇总的配置 5. 掌握区域间路由的汇总配置 实验拓扑图 IPv4地址表 Device Interface IP Address R1 F 0/0 10.1.81.1 S 1/0 192.168.81.1 R3 S 1/0 192.168.81.3 R4 S 1/0 192.168.81.4 R5 F 0/0

OSPFv3与OSPF的配置

IPv6 路由-OSPFv3 实验目的 1.   掌握 OSPFv3 的配置方法 2.   掌握在帧中继环境下 OSPFv3 的配置方法 3.   掌握 OSPFv3 NSSA 的配置方法 4.   掌握外部路由汇总的配置 5.   掌握区域间路由的汇总配置 实验拓扑图 IPv4地址表 Device Interface IP Address R1 F 0/0 10.1.99.1 S 0/0 192.168.99.1 R3 S 0/0 192.168.99.3 R4 S 0/0 192.168.9

IPv6技术系列④——IPv6 OSPFv3理论与基础配置

一.基本概念 OSPFv3与OSPFv2(IPv4 OSPF)的原理基本相同,基于SPF进行全网拓扑信息的计算.OSPFv3选举Router-ID的规则与OSPFv2相同,OSPFv3也是选择路由器上的IPv4地址作为Router-ID,如果设备上没有配置IPv4地址,那么必须手工指定Router-ID.在配置OSPFv3时,先配置进程,然后需要让哪些接口运行在OSPFv3下,就必须到相应的接口下明确指定,并不像OSPFv2那样在进程下通过network来发布. 二.拓扑结构 三.配置步骤 1.

MPLS VPN 之Hub&Spoke配置及路由分析

所谓的Hub点就是汇聚Spoke节点的中心节点,而Spoke节点就是分支节点,如果在MPLS VPN中,Spoke节点需要通过中心节点Hub进行通信,那么就需要使用Hub&Spoke组网方式,在<MPLS和VPN体系结构>这本书中叫做星型拓扑,本实验的拓扑图是基于这本书中的拓扑图,由于书中并没有讲配置,并且进得也很模糊,现在就用实验进行分析,Spoke节点之间的流量是如何通过中心的CE进行通信的,实验拓扑图如下: 实验要求: 昆明分部的R7需要通过上海总部的R1和R2访问贵阳分部的R6

回车恐惧症?13个 JUNOS 技巧助你轻松无忧配置网络

回车键,日常电脑使用中,扮演"确认"或"执行"事件的功效. 在网络工程师的平日运维工作中,无论是计划性的网络配置修改,还是临时性的故障处理,大家是否都存在同样的感受:特别小心敲击回车键,再三确认以后才执行. 相信以下场景是很多做网络的朋友曾经都遇到过的,在远程配置 Cisco 或者其他厂商路由器或交换机时,一顿复制粘贴然后敲下回车结果就是这样: 1. 配错接口 IP 地址--Game Over! 2. 修改静态路由条目或者动态路由协议,导致路由丢失----Game