1.如图连接网络,合理规格IP地址,AS200内IGP协议为OSPF
2.R1属于AS 100,R2-R3-R4小AS 234 R5-R6-R7小AS 567,同时声明大AS 200,R8属于AS300
3.R2-R5 R4-R7之间为联邦EBGP邻居关系
4.R1-R8之间通信
一、配置ip、协议
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 12.1.1.1 24
[r1-GigabitEthernet0/0/0]
Aug 20 2024 23:22:28-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r1-GigabitEthernet0/0/0]q
[r1]
[r1]interface lo 0
[r1-LoopBack0]ip address 1.1.1.1 32
R2
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 12.1.1.2 24
[r2-GigabitEthernet0/0/0]q
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
[r2-GigabitEthernet0/0/1]q
[r2]interface g0/0/2
[r2-GigabitEthernet0/0/2]ip address 25.1.1.1 24
[r2-GigabitEthernet0/0/2]q
[r2]interface LoopBack 0
[r2-LoopBack0]ip address 2.2.2.2 32
[r2-LoopBack0]q
查看启动
R3:
r3]interface LoopBack 0
[r3-LoopBack0]ip address 3.3.3.3 32
[r3-LoopBack0]q
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ip address 23.1.1.2 24
[r3-GigabitEthernet0/0/0]q
[r3]interface g0/0/1
[r3-GigabitEthernet0/0/1]ip address 34.1.1.1 24
R4
[r4]interface lo 0
[r4-LoopBack0]ip address 4.4.4.4 24
[r4-LoopBack0]q
[r4]int g0/0/1
[r4-GigabitEthernet0/0/1]ip address 34.1.1.2 24
[r4-GigabitEthernet0/0/1]int g0/0/2
[r4-GigabitEthernet0/0/2]ip address 47.1.1.1 24
R5:
[r5]interface lo 0
[r5-LoopBack0]ip address 5.5.5.5 24
[r5-LoopBack0]int g0/0/2
[r5-GigabitEthernet0/0/2]ip address 25.1.1.2 24
[r5-GigabitEthernet0/0/2]int g0/0/0
[r5-GigabitEthernet0/0/0]ip address 56.1.1.1 24
R6
[r6]int lo 0
[r6-LoopBack0]ip address 6.6.6.6 24
[r6-LoopBack0]int g0/0/0
[r6-GigabitEthernet0/0/0]ip address 67.1.1.1 24
[r6-GigabitEthernet0/0/0]int g0/0/1
[r6-GigabitEthernet0/0/1]ip add 56.1.1.2 24
R7
[r7]int lo 0
[r7-LoopBack0]ip address 7.7.7.7 24
[r7-LoopBack0]int g0/0/0
[r7-GigabitEthernet0/0/0]ip address 78.1.1.1 24
[r7-GigabitEthernet0/0/0]int g0/0/1
[r7-GigabitEthernet0/0/ip address 67.1.1.2 24
[r7-GigabitEthernet0/0/1]int g0/0/2
[r7-GigabitEthernet0/0/2]ip address 47.1.1.2 24
R8
协议:
[r2]ospf 1 router-id 92.2.2.2
[r2-ospf-1]area 0
[[r2-ospf-1-area-0.0.0.0]net 2.2.2.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0]net 23.1.1.1 0.0.0.0
[r2-ospf-1-area-0.0.0.0]net 25.1.1.1 0.0.0.0
[r3]ospf 1 rout
[r3]ospf 1 router-id 93.3.3.3
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]net 3.3.3.3 0.0.0.0
[r3-ospf-1-area-0.0.0.0]net 23.1.1.2 0.0.0.0
[r3-ospf-1-area-0.0.0.0]net 34.1.1.1 0.0.0.0
[r6]ospf 1 router-id 96.6.6.6