ospf路由 华3_H3C OSPF路由配置

OSPF配置:

R1:

system

int e0/1/0

ip address 192.168.123.1 255.255.255.0

ospf authentication-mode simple 123

ospf cost 12

ospf dr-priority 1

ospf network-type broadcast

ospf timer hello 10

ospf timer dead 40

ospf trans-delay 25

undo shutdown

quit

int lo1

ip address 192.168.1.33 255.255.255.224

undo shutdown

quit

int lo2

ip address 192.168.1.66 255.255.255.224

undo shutdown

quit

ospf 100 router-id 1.1.1.1

area 12

network 192.168.123.0 0.0.0.255

network 192.168.1.32 0.0.0.31

network 192.168.1.64 0.0.0.31

return

display ip routing-table

R2:

system

int e0/1/0

ip address 192.168.123.2 255.255.255.0

ospf authentication-mode simple 123

ospf cost 12

ospf dr-priority 2

ospf network-type broadcast

ospf timer hello 10

ospf timer dead 40

ospf trans-delay 25

undo shutdown

quit

int lo1

ip address 192.168.2.33 255.255.255.224

undo shutdown

quit

int lo2

ip address 192.168.2.66 255.255.255.224

undo shutdown

quit

ospf 100 router-id 2.2.2.2

area 12

network 192.168.123.0 0.0.0.255

network 192.168.2.32 0.0.0.31

network 192.168.2.64 0.0.0.31

return

display ip routing-table

R3:

system

int e0/1/0

ip address 192.168.123.3 255.255.255.0

ospf authentication-mode simple 123

ospf cost 12

ospf dr-priority 3

ospf network-type broadcast

ospf timer hello 10

ospf timer dead 40

ospf trans-delay 25

undo shutdown

quit

int lo1

ip address 192.168.3.33 255.255.255.224

undo shutdown

quit

int lo2

ip address 192.168.3.66 255.255.255.224

undo shutdown

quit

int s0/2/2

ip address 192.168.34.1 255.255.255.0

ospf authentication-mode md5 1 789

undo shutdown

quit

ospf 100 router-id 3.3.3.3

area 12

network 192.168.123.0 0.0.0.255

network 192.168.3.32 0.0.0.31

network 192.168.3.64 0.0.0.31

abr-summary 192.168.1.0 255.255.255.0

abr-summary 192.168.2.0 255.255.255.0

abr-summary 192.168.3.0 255.255.255.0

quit

area 34

network 192.168.34.0 0.0.0.255

vlink-peer 4.4.4.4 simple 123

quit

return

R4:

system

int s0/2/0

ip add 192.168.34.2 255.255.255.0

ospf authentication-mode md5 1 789

undo shutdown

quit

int s0/2/2

ip add 192.168.45.1 255.255.255.0

ospf authentication-mode simple 123

undo shutdown

quit

ospf 100 router-id 4.4.4.4

area 34

network 192.168.34.0 0.0.0.255

vlink-peer 3.3.3.3 simple 123

quit

area 0

network 192.168.45.0 0.0.0.255

authentication-mode simple

quit

quit

R5:

system

int s0/2/2

ip add 192.168.45.2 255.255.255.0

ospf authentication-mode simple 123

undo shutdown

quit

int s0/2/0

ip add 192.168.56.1 255.255.255.0

ospf authentication-mode simple 123

undo shutdown

quit

int s0/2/1

ip add 192.168.50.1 255.255.255.0

undo shutdown

quit

ospf 100 router-id 5.5.5.5

import-route rip

asbr-summary 192.168.10.1 255.255.255.0

area 0

network 192.168.45.0 0.0.0.255

authentication-mode simple

network 192.168.56.0 0.0.0.255

authentication-mode simple

quit

quit

rip

network 192.168.50.0

import-route ospf 100

return

R6:

sy

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值