目录
OSPFv3实验配置
建立OSPFv3邻居
AR1修改DR优先级
AR1引入直连路由
配置Stub区域
ISIS IPv6实验配置
建立ISIS邻居
修改AR1的DIS优先级
在AR1上配置路由泄露
BGP4+实验配置
AR1与AR2、AR3建立IBGP邻居关系
AR2与AR4建立EBGP邻居关系
配置AR1为反射器
OSPFv3实验配置
基础配置
AR1
ipv6
int g0/0/1
ipv6 enable
ipv6 add 2000:14::1 64
int g0/0/0
ipv6 enable
ipv6 add 2000:123::1 64
interface LoopBack0
ipv6 enable
ipv6 address 2001::1/128
AR2
ipv6
int g0/0/0
ipv6 enable
ipv6 add 2000:123::2 64
AR3
ipv6
int g0/0/0
ipv6 enable
ipv6 add 2000:123::3 64
AR4
ipv6
int g0/0/0
ipv6 enable
ipv6 add 2000:14::4 64
int g0/0/1
ipv6 enable
ipv6 add 2000:45::4 64
AR5
ipv6
int g0/0/0
ipv6 enable
ipv6 add 2000:45::5 64
建立OSPFv3邻居
AR1
ospfv3 1
router-id 1.1.1.1
area 0
area 1
int g0/0/0
ospfv3 1 area 1
int g0/0/1
ospfv3 1 area 0
AR2
ospfv3 1
router-id 2.2.2.2
area 1
int g0/0/0
ospfv3 1 area 1
AR3
ospfv3 1
router-id 3.3.3.3
area 1
int g0/0/0
ospfv3 1 area 1
AR4
ospfv3 1
router-id 4.4.4.4
area 0
area 2
int g0/0/0
ospfv3 1 area 0
int g0/0/1
ospfv3 1 area 2
AR5
ospfv3 1
router-id 5.5.5.5
area 2
stub
int g0/0/0
ospfv3 1 area 2
AR1修改DR优先级
int g0/0/0
ospfv3 dr-priority 100
AR1引入直连路由
ospfv3 1
import-route direct type 2
配置Stub区域
AR4
ospfv3 1
area 2
stub no-summary
AR5
ospfv3 1
area 2
stub
ISIS IPv6实验配置
基础配置同OSPFv3
建立ISIS邻居
AR1
isis 1
is-level level-1-2
network-entity 49.0001.0000.0001.00
ipv6 enable
int g0/0/0
isis ipv6 enable 1
int g0/0/1
isis ipv6 enable 1
AR2
isis 1
is-level level-1
network-entity 49.0001.0000.0002.00
ipv6 enable
int g0/0/0
isis ipv6 enable 1
AR3
isis 1
is-level level-1
network-entity 49.0001.0000.0003.00
ipv6 enable
int g0/0/0
isis ipv6 enable 1
AR4
isis 1
is-level level-2
network-entity 49.0002.0000.0004.00
ipv6 enable
int g0/0/0
isis ipv6 enable 1
int g0/0/1
isis ipv6 enable 1
AR5
isis 1
is-level level-2
network-entity 49.0003.0000.0005.00
ipv6 enable
int g0/0/0
isis ipv6 enable 1
修改AR1的DIS优先级
int g0/0/1
isis dis-priority 100
在AR1上配置路由泄露
将Level-2路由引入到Level-1中,使得全网互通
isis 1
import-route isis level-2 into level-1
BGP4+实验配置
基础配置
AR1
ipv6
int g0/0/1
ipv6 enable
ipv6 add 2000:13::1 64
int g0/0/0
ipv6 enable
ipv6 add 2000:12::1 64
int loop 0
ipv6 enable
ipv6 add 2001::1 128
AR2
ipv6
int g0/0/0
ipv6 enable
ipv6 add 2000:12::2 64
int g0/0/1
ipv6 enable
ipv6 add 2000:24::2 64
int loop 0
ipv6 enable
ipv6 add 2002::2 128
AR3
ipv6
int g0/0/0
ipv6 enable
ipv6 add 2000:13::1 64
int loop 0
ipv6 enable
ipv6 add 2003::3 128
AR4
ipv6
int g0/0/0
ipv6 enable
ipv6 add 2000:24::4 64
int loop 0
ipv6 enable
ipv6 add 2004::4 128
AR1与AR2、AR3建立IBGP邻居关系
通过环回口建立IBGP邻居关系(底层IGP互通)
AR1
bgp 100
router-id 1.1.1.1
peer 2002::2 as 100
peer 2002::2 connect-interface LoopBack 0 配置更新源为环回口0
peer 2003::3 as 100
peer 2003::3 connect-interface LoopBack 0
ipv6-family unicast
peer 2002::2 enable
peer 2003::3 enable
AR2
bgp 100
router-id 2.2.2.2
peer 2001::1 as 100
peer 2001::1 connect-interface LoopBack 0
ipv6-family unicast
peer 2001::1 enable
peer 2001::1 next-hop-local
从EBGP学习到的路由传递给IBGP邻居时将下一跳更改为本地更新源
AR3
bgp 100
router-id 3.3.3.3
peer 2001::1 as 100
peer 2001::1 connect-interface LoopBack 0
ipv6-family unicast
peer 2001::1 enable
dis bgp ipv6 peer 查看BGP4+邻居关系
AR2与AR4建立EBGP邻居关系
AR2
bgp 100
peer 2000:24::4 as 200
ipv6-family unicast
peer 2000:24::4 enable
AR4
bgp 200
router-id 4.4.4.4
peer 2000:24::2 as 100
ipv6-family unicast
peer 2000:24::2 enable
配置AR1为反射器
客户端为AR2和AR3
bgp 100
ipv6-family unicast
reflector cluster-id 1.1.1.1
peer 2002::2 reflect-client
peer 2003::3 reflect-client