一:IP地址规划
图中有area0、area1、area2、area3、area4和rip共6个区域,所以将172.16.0.0/16划分为172.16.0.0/19、172.16.32.0/19、172.16.64.0/19、172.16.96.0/19、172.16.128.0/19、172.16.160.0/19分别为这六个区域的网段,剩余两个网段备用。每个区域内又分为P2P骨干链路、MA骨干链路、末梢链路。
area 0 172.16.0.0/19
P2P 172.16.0.0/24 172.16.0.0/30 172.16.0.4/30 172.16.0.8/30
MA 172.16.1.0/24 172.16.1.0/29 172.16.1.8/29 172.16.1.16/29
STUB 172.16.2.0/24 172.16.3.0/24
area 1 172.16.32.0/19
P2P 172.16.32.0/24 172.16.32.0/30 172.16.32.4/30 172.16.32.8/30
MA 172.16.33.0/24 172.16.33.0/29 172.16.33.8/29 172.16.33.16/29
STUB 172.16.34.0/24 172.16.35.0/24
area 2 172.16.64.0/19
P2P 172.16.64.0/24 172.16.64.0/30 172.16.64.4/30 172.16.64.8/30
MA 172.16.65.0/24 172.16.65.0/29 172.16.65.8/29 172.16.65.16/29
STUB 172.16.66.0/24 172.16.67.0/24
area 3 172.16.96.0/19
P2P 172.16.96.0/24 172.16.96.0/30 172.16.96.4/30 172.16.96.8/30
MA 172.16.97.0/24 172.16.97.0/29 172.16.97.8/29 172.16.97.16/29
STUB 172.16.98.0/24 172.16.99.0/24
area 4 172.16.128.0/19
P2P 172.16.128.0/24 172.16.128.0/30 172.16.128.4/30 172.16.128.8/30
MA 172.16.129.0/24 172.16.129.0/29 172.16.129.8/29 172.16.129.16/29
STUB 172.16.130.0/24 172.16.131.0/24
Rip 172.16.160.0/19
P2P 172.16.160.0/24 172.16.160.0/30 172.16.160.4/30 172.16.160.8/30
MA 172.16.161.0/24 172.16.161.0/29 172.16.161.8/29 172.16.161.16/29
STUB 172.16.162.0/24 172.16.163.0/24
二:配置IP地址
R1
[R1]int g 0/0/0
[R1-GigabitEthernet0/0/0]ip address 172.168.33.1 29
[R1-GigabitEthernet0/0/0]q
[R1]int lo 0
[R1-LoopBack0]ip address 172.16.34.1 24
R2
[R2]int g 0/0/0
[R2-GigabitEthernet0/0/0]ip address 172.16.33.2 29
[R2-GigabitEthernet0/0/0]q
[R2]int lo 0
[R2-LoopBack0]ip address 172.16.35.1 24
R3
[R3]int g 0/0/0
[R3-GigabitEthernet0/0/0]ip address 172.16.33.3 29
[R3-GigabitEthernet0/0/0]int lo 0
[R3-LoopBack0]ip address 172.16.36.1 24
[R3-LoopBack0]int s 4/0/0
[R3-Serial4/0/0]ip address 34.0.0.1 24
R4
[R4]int s 4/0/0
[R4-Serial4/0/0]ip address 34.0.0.2 24
[R4-Serial4/0/0]int s 4/0/1
[R4-Serial4/0/1]ip address 45.0.0.2 24
[R4-Serial4/0/1]int s 3/0/0
[R4-Serial3/0/0]ip address 46.0.0.2 24
[R4-Serial3/0/0]int g 0/0/0
[R4-GigabitEthernet0/0/0]ip address 47.0.0.2 24
[R4-GigabitEthernet0/0/0]int lo 0
[R4-LoopBack0]ip address 4.4.4.4 24
R5
[R5]int s 4/0/0
[R5-Serial4/0/0]ip address 45.0.0.1 24
[R5-Serial4/0/0]int lo 0
[R5-LoopBack0]ip address 172.16.2.1 24
R6
[R6]int s 4/0/0
[R6-Se