实验要求:
优化及要求:
1,AS1存在两个环回,,一个地址为192.168.1.0/24该地址不能在任何协议中宣告,
AS3中存在两个环回,一个地址为192.168.2./24该地址不能在任何协议中宣告,最终要求这两个环回可以互相通讯
2,整个AS2的Ip地址为172.16.0.0/16,请合理划分
3,AS间的骨干链路IP地址随意定制
4,使用BGP协议让整个网络所有设备的环回可以互相访问,减少路由条自数量,避免环路出现
拓扑设计:
步骤一:地址划分
总地址网段:172.16.0.0 /16
骨干链路:172.16.0.0 /24划分至30位
172.16.0.0 30
172.16.0.4 30
172.16.0.8 30
......
建邻的环回地址:172.16.1.0 /24下的主机地址
172.16.1.2/32
172.16.1.3/32
172.16.1.4/32
........
用户网段:172.16.2.0 /24 172.16.3.0 /24 172.16.4.0 24 ......
步骤二:拓扑建立,IP地址配置
拓扑建立
IP地址配置
R1
interface GigabitEthernet0/0/0ip address 12.1.1.1 255.255.255.0
interface LoopBack0ip address 1.1.1.1 255.255.255.255
interface LoopBack1ip address 192.168.1.1 255.255.255.0
R2
interface GigabitEthernet0/0/0ip address 12.1.1.2 255.255.255.0
interface GigabitEthernet0/0/1ip address 172.16.0.1 255.255.255.252
interface GigabitEthernet0/0/2ip address 172.16.0.13 255.255.255.252
interface LoopBack0ip address 172.16.1.2 255.255.255.255
interface LoopBack1ip address 172.16.2.1 255.255.255.0
R3
interface GigabitEthernet0/0/0ip address 172.16.0.2 255.255.255.252
interface GigabitEthernet0/0/1ip address 172.16.0.5 255.255.255.252
interface LoopBack0ip address 172.16.1.3 255.255.255.255
interface LoopBack1ip address 172.16.3.1 255.255.255.0
R4
interface GigabitEthernet0/0/0ip address 172.16.0.6 255.255.255.252
interface GigabitEthernet0/0/1ip address 172.16.0.9 255.255.255.252
interface LoopBack0ip address 172.16.1.4 255.255.255.255
interface LoopBack1ip address 172.16.4.1 255.255.255.0
R5
interface GigabitEthernet0/0/0ip address 172.16.0.14 255.255.255.252
interface GigabitEthernet0/0/1ip address 172.16.0.17 255.255.255.252
interface LoopBack0ip address 172.16.1.5 255.255.255.255
interface LoopBack1ip address 172.16.5.1 255.255.255.0
R6
interface GigabitEthernet0/0/0ip address 172.16.0.18 255.255.255.252
interface GigabitEthernet0/0/1ip address 172.16.0.21 255.255.255.252
interface LoopBack0ip address 172.16.1.6 255.255.255.255
interface LoopBack1ip address 172.16.6.1 255.255.255.0
R7
interface GigabitEthernet0/0/0ip address 172.16.0.22 255.255.255.252
interface GigabitEthernet0/0/1ip address 172.16.0.10 255.255.255.252
interface GigabitEthernet0/0/2ip address 78.1.1.7 255.255.255.0
interface LoopBack0ip address 172.16.1.7 255.255.255.255
interface LoopBack1ip address 172.16.7.1 255.255.255.0
R8
interface GigabitEthernet0/0/0ip address 78.1.1.8 255.255.255.0
interface LoopBack0ip address 8.8.8.8 255.255.255.255
interface LoopBack1ip address 192.168.2.1 255.255.255.0