(1)192.168.1.0000 0000----AREA 0---192.168.1.0/25192.168.1.0000 0000----192.168.1.0/27---骨干链路192.168.1.0000 0000--192.168.1.0/29192.168.1.0010 0000---192.168.1.32/27---R1环回192.168.1.0100 0000----192.168.1.64/27--R2环回192.168.1.0110 0000---192.168.1.96/27--R3环回(2)192.168.1.1000 0000----AREA 1----192.168.1.128/25[R1]ospf 1 router-id 1.1.1.1 [R1-ospf-1]area 0 //配置OSPF的区域[R1-ospf-1-area-0.0.0.0] //区域视图--255.255.255.224-----0.0.0.31-255.255.255..248-----0.0.0.7宣告直连网段:精确宣告、网段宣告[R1-ospf-1-area-0.0.0.0]network 192.168.1.33 0.0.0.31(0.0.0.0) [R1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.7<R3>reset ospf process //重置OSPF的 进程Warning: The OSPF process will be reset. Continue? [Y/N]:y[R1]dis ospf peer brief 查看邻居简表[R4-ospf-1]default-route-advertise always 强制下发默认路由给其他运行ospf协议的路由器 [R1-GigabitEthernet0/0/0]ospf dr-priority 0 修改接口优先级[R1-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher admin123 接口认证[R4-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher 12345 区域认证接口认证优先