交换机
sw(config)#router ospf 1 创建ospf 1
sw(config-router)#router-id 10.10.1.1 ospf的进程ip ospf的进程一般是loopback地址
sw(config-router)#network 192.168.2.1 0.0.0.255 area 0 宣告192.168.2.1网段osfp区域为0 24/0.0.0.255 32/0.0.0.0 30/0.0.0.3
sw(config-router)#area 0 authentication message-digest md5认证
sw(config-if-vlan)#ip ospf hello-interval 配置ospf hello报文间隔 时间单位 秒
sw(config-if-vlan)#ip ospf dead-interval 配置ospf 死亡间隔时间 时间单位秒
sw(config-if-vlan)#ip ospf authentication message-digest 使用md5认证
sw(config-if-vlan)#ip ospf authentication null 使用空认证
sw(config-if-vlan)#ip ospf message-digest-key (key ID) md5 0(明文密码)/7(密文密码)用户密码 OSPF接口MD5认证
神州ospf
于 2024-06-01 19:05:39 首次发布