HCL ospf 虚连接

IP地址表
设备名称接口IP地址
RTAG0/010.0.0.1/24
Loopback01.1.1.1/32
RTBG0/010.0.0.2/24
G0/120.0.0.1/24
Loopback02.2.2.2/32
RTCG0/030.0.0.1/24
G0/120.0.0.2/24
Loopback03.3.3.3/32
RTDG0/030.0.0.2/24
Loopback04.4.4.4/32
拓扑图

1

配置IP及ospf

RTA:
system-view 
interface GigabitEthernet 0/0 
ip address 10.0.0.1 255.255.255.0
interface loopback 0
ip address 1.1.1.1 255.255.255.255
quit
ospf 1
area 0
network 10.0.0.0 0.0.0.255
network 1.1.1.1 0.0.0.0
quit
RTB:
system-view
interface GigabitEthernet 0/0 
ip address 10.0.0.2 255.255.255.0
interface GigabitEthernet 0/1
ip address 20.0.0.1 255.255.255.0
interface loopback 0
ip address 2.2.2.2 255.255.255.255
quit
ospf 1
area 0
network 10.0.0.0 0.0.0.255
area 1
network 20.0.0.0 0.0.0.255
network 2.2.2.2 0.0.0.0
quit
RTC:
system-view
interface GigabitEthernet 0/0
ip address 30.0.0.1 255.255.255.0
interface GigabitEthernet 0/1
ip address 20.0.0.2 255.255.255.0
interface loopback 0
ip address 3.3.3.3 255.255.255.255
quit
ospf 1
area 1
network 3.3.3.3 0.0.0.0
network 20.0.0.0 0.0.0.255
area 2
network 30.0.0.0 0.0.0.255
quit
RTD:
system-view
interface GigabitEthernet 0/0
ip address 30.0.0.2 255.255.255.0
interface Loopback 0
ip address 4.4.4.4 255.255.255.255
quit
ospf 1
area 2
network 4.4.4.4 0.0.0.0
network 30.0.0.0 0.0.0.255
quit
设置虚连接
RTB:
ospf 1
area 1
vlink-peer 3.3.3.3
quit
RTC:
ospf 1
area 1
vlink-peer 2.2.2.2
quit

注:

若无法学习到路由,有可能是端口没有打开,此处我是将路由器设置保存好后重新打开路由器来解决的。
结果如下:

2

  • 2
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值