CCNA-17、OSPF-v2;v3的配置
2022-11-09 本文已影响0人
Tess鱼丸
interface FastEthernet0/0
ip address 192.168.12.1 255.255.255.0
ip ospf priority 2 #设置ospf接口优先级,使其当DR
R1#clear ip ospf process #清除ospf进程
OSPF的路由标识
O - OSPF,
IA - OSPF inter area
N1 - OSPF NSSA external type 1,
N2 - OSPF NSSA external type 2
E1 - OSPF external type 1,
E2 - OSPF external type 2
OSPFv3 IPv6 配置
ipv6 unicast-routing #启用ipv6的功能
ipv6 router ospf 1
router-id 2.2.2.2
ipv6是在接口地下宣告的,不是用network宣告的
interface Ethernet0/0
ipv6 address 3FFE:FFFF:1::1/64
ipv6 ospf 1 area 0 #启用某个进程,指定Area 的ID
ipv6 ospf priority 20 #配置优先级
ipv6 ospf cost 20
Router1#
interface s1/1
ipv6 address 2001:410:FFFF: 1::1/64ipv6 ospf 100 area 0
interface s2/0
ipv6 address 3FEE:B00 : FFFF:1::2/64ipv6 ospf 100 area 1
ipv6 router ospf 100
router-id 10.1.1.3
Router2#
interface s3/0
ipv6 address 3FEE:B00 : FFFF:1::1/64ipv6 ospf 100 area 1
ipv6 router ospf 100
router-id 10.1.1.4
·查看OSPF邻居表
Router# show ipv6 ospf neighbor
·显示路由表的信息
Router# show ipv6 route
·清除IP路由表的信息
Router# clear ipv6 route *
·在控制台显示OSPF的工作状态
Router# debug ipv6 ospf
排错:
R2(config-if)#ip ospf hello-interval 40 #hello包的时间设置40秒,可自定义。
查看双方hello发送时间,要设置一样才能起来。