实验要求
1.IP地址的规划
将192.168.0.0/24划分为9个网段
192.168.0.0/28 192.168.0.16/28 192.168.0.32/28 192.168.0.48/28 192.168.0.80/28 192.168.0.96/28
192.168.0.112/28 划分为192.168.0.112/30 192.168.0.116/30 192.168.0.120/30用作r1的环回
VLAN2:192.168.0.64/28 VLAN3:192.168.0.128/28
备用:192.168.0.144/28 192.168.0.160/28 192.168.0.176/28 192.168.0.192/28 192.168.0.208/28 192.168.0.224/28 192.168.0.240/28
2.拓扑结构的搭建
3.IP地址的配置
r1:
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.0.1 28
[r1-GigabitEthernet0/0/0]q
[r1]interface g0/0/1
[r1-GigabitEthernet0/0/1]ip address 192.168.0.17 28
[r1-GigabitEthernet0/0/1]q
[r1]interface LoopBack 0
[r1-LoopBack0]ip address 192.168.0.113 30
[r1-LoopBack0]interface LoopBack 1
[r1-LoopBack1]ip address 192.168.0.117 30
[r1-LoopBack1]interface LoopBack 2
[r1-LoopBack2]ip address 192.168.0.121 30
[r1-LoopBack2]q
r2:
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.0.2 28
[r2-GigabitEthernet0/0/0]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip address 192.168.0.33 28
[r2-GigabitEthernet0/0/1]q
r3:进行DHCP的分配
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ip addres