1.r3456之间只有r3为没有bdr
Router ID: 5.5.5.5 Address: 123.1.1.3
State: 2-Way Mode:Nbr is Master Priority: 0
DR: 123.1.1.1 BDR: None MTU: 0
Dead timer due in 31 sec
Retrans timer interval: 0
Neighbor is up for 00:00:00
Authentication Sequence: [ 0 ]
2.保证更新安全加快收敛速度
[r1]interface g0/0/2
[r1-GigabitEthernet0/0/2]ospf authentication-mode simple cipher 123
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/2]ospf authentication-mode simple ciph
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ospf authentication-mode simple cipher 123
[r2-GigabitEthernet0/0/1]ospf authentication-mode md5
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ospf authentication-mode simple cipher 123
[r3-GigabitEthernet0/0/0]ospf authentication-mode md5
[r1]interface g0/0/2
[r1-GigabitEthernet0/0/2]ospf timer hello 5
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/2]ospf timer hello 5
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/2]ospf timer hello 5
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/2]ospf timer hello 5
[r3]interface g0/0/1
[r3-GigabitEthernet0/0/2]ospf timer hello 5
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/2]ospf timer hello 5
3.r4换回不能宣告全网可达
[r4-ospf-100]display this
[V200R003C00]
#
ospf 100 router-id 4.4.4.4
area 0.0.0.0
network 45.1.1.1 0.0.0.0
network 123.1.1.2 0.0.0.0
area 0.0.0.2
#
return
[r4]ospf 100
[r4-ospf-100]default-route-advertise always
R1 pin R4的环回
[r1]pin 4.4.4.4
PING 4.4.4.4: 56 data bytes, press CTRL_C to break
Reply from 4.4.4.4: bytes=56 Sequence=1 ttl=166 time=1000 ms
Reply from 4.4.4.4: bytes=56 Sequence=2 ttl=252 time=60 ms
Request time out
Request time out
Reply from 4.4.4.4: bytes=56 Sequence=5 ttl=216 time=450 ms
PC1 pin 4.4.4.4
PC>ping 4.4.4.4
Ping 4.4.4.4: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 4.4.4.4: bytes=32 seq=2 ttl=187 time=765 ms
Request timeout!
Request timeout!
From 4.4.4.4: bytes=32 seq=5 ttl=251 time=78 ms
PC1pin 5和6的环回
PC>ping 6.6.6.6 Ping 6.6.6.6: 32 data bytes, Press Ctrl_C to break Request timeout! From 6.6.6.6: bytes=32 seq=2 ttl=206 time=563 ms Request timeout! Request timeout! From 6.6.6.6: bytes=32 seq=5 ttl=252 time=93 ms PC>ping 5.5.5.5 Ping 5.5.5.5: 32 data bytes, Press Ctrl_C to break From 5.5.5.5: bytes=32 seq=1 ttl=226 time=360 ms Request timeout! Request timeout! From 5.5.5.5: bytes=32 seq=4 ttl=252 time=109 ms Request timeout!
4.IP自动下放
[dhcp]ip pool 1
Info: It's successful to create an IP address pool.
[dhcp-ip-pool-1]network 192.168.1.0 mask 255.255.255.0
[dhcp-ip-pool-1]gateway-list 192.168.1.1
[dhcp-ip-pool-1]dns-list 8.8.8.8
[dhcp-ip-pool-1]static-bind ip-address 192.168.1.33 mac-address 5489-98EF-415D
[dhcp-ip-pool-1]static-bind ip-address 192.168.1.33 mac-address 5489-9850-4252
[dhcp]interface g0/0/0
[dhcp-GigabitEthernet0/0/0]dhcp select global
[dhcp]ip pool 2
Info: It's successful to create an IP address pool.
[dhcp-ip-pool-1]network 172.16.2.0 mask 255.255.255.0
[dhcp-ip-pool-1]gateway-list 172.16.2.1
[dhcp-ip-pool-1]dns-list 8.8.8.8
[dhcp-ip-pool-1]static-bind ip-address 172.16.2.11 mac-address 5489-98EF-415D
[dhcp-ip-pool-1]static-bind ip-address 172.16.2.22 mac-address 5489-9850-4252
[dhcp]interface g0/0/1
[dhcp-GigabitEthernet0/0/1]dhcp select global
IPv4 address......................: 192.168.1.11
IPv4 address......................: 192.168.1.22
IPv4 address......................: 172.16.2.11
IPv4 address......................: 172.16.2.22
5.area1区域铭文认证 area2密文
[r1]ospf 100
[r1-ospf-100]area 1
[r1-ospf-100-area-0.0.0.1]authentication-mode simple cipher 123
[r2]ospf 100
[r2-ospf-100]area 1
[r2-ospf-100-area-0.0.0.1]authentication-mode simple cipher 123
[r3]ospf 100
[r3-ospf-100]are
[r3-ospf-100]area 1
[r3-ospf-100-area-0.0.0.1]authentication-mode simple cipher 123
[r3-ospf-100-area-0.0.0.1]q
[r3-ospf-100]are
[r3-ospf-100]area 2
[r3-ospf-100-area-0.0.0.2]authentication-mode simple cipher 123
[r3-ospf-100-area-0.0.0.2]authentication-mode md5
[r4]ospf 100
[r4-ospf-100]area 2
[r4-ospf-100-area-0.0.0.2]authentication-mode simple cipher 123
[r4-ospf-100-area-0.0.0.2]authentication-mode md5
[r5]ospf 100
[r5-ospf-100]are
[r5-ospf-100]area 2
[r5-ospf-100-area-0.0.0.2]authentication-mode simple cipher 123
[r5-ospf-100-area-0.0.0.2]authentication-mode md5
[r6]ospf 100
[r6-ospf-100]area 2
[r6-ospf-100-area-0.0.0.2]authentication-mode simple cipher 123
[r6-ospf-100-area-0.0.0.2]authentication-mode md5