第六章作业(思维导图在最下)

实验要求:

实验过程:

R1:

[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.0.0.1 24
[R1-GigabitEthernet0/0/0]
May 12 2024 16:34:50-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R1-GigabitEthernet0/0/0]int l0
[R1-LoopBack0]ip ad 192.168.1.1 24
[R1-LoopBack0]int l1
[R1-LoopBack1]ip ad 10.0.0.1 24

[R1]bgp 1

[R1-bgp]router-id 1.1.1.1

[R1-bgp]peer 12.0.0.2 as-number 2

[R1-bgp]network 10.0.0.0 24

[R1]ip route-static 172.16.0.0 16 NULL 0

[R1]bgp 64512

[R1-bgp]network 172.16.0.0 16

[R1]int t 0/0/0
[R1-Tunnel0/0/0]ip address 192.168.18.1 24
[R1-Tunnel0/0/0]tunnel-protocol gre 
[R1-Tunnel0/0/0]source 10.0.0.1
[R1-Tunnel0/0/0]destination 11.0.0.1
[R1]ip route-static 192.168.2.0 24 192.168.18.2

R2:

[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip ad 12.0.0.2 24
May 12 2024 16:38:22-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip ad 172.16.0.1 30
May 12 2024 16:39:06-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R2-GigabitEthernet0/0/1]int g0/0/2
[R2-GigabitEthernet0/0/2]ip ad 172.16.0.22 30
May 12 2024 16:39:44-08:00 R2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R2-GigabitEthernet0/0/2]int l0
[R2-LoopBack0]ip ad 172.16.64.1 32
[R2-LoopBack0]int l1
[R2-LoopBack1]ip ad 172.16.128.1 24

[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0    
[R2-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.255.255

[R2]bgp 64512

[R2-bgp]router-id 2.2.2.2

[R2-bgp]confederation id 2

[R2-bgp]confederation peer-as 64513

[R2-bgp]peer 172.16.64.2 as-number 64512

[R2-bgp]peer 172.16.64.2 connect-interface l 0

[R2-bgp]peer 172.16.64.4 as-number 64513

[R2-bgp]peer 172.16.64.4 connect-interface l 0

[R2-bgp]peer 172.16.64.4 ebgp-max-hop

[R2-bgp]peer 172.16.64.2 next-hop-local

R3:

[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip ad 172.16.0.2 30
[R3-GigabitEthernet0/0/0]
May 12 2024 16:41:35-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-GigabitEthernet0/0/0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip ad 172.16.0.5 30
May 12 2024 16:42:10-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R3-GigabitEthernet0/0/1]int l0
[R3-LoopBack0]ip ad 172.16.64.2 32
[R3-LoopBack0]int l1
[R3-LoopBack1]ip ad 172.16.129.1 24
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.255.255

[R3]bgp 64512
[R3-bgp]router-id 3.3.3.3

[R3-bgp]confederation id 2

[R3-bgp]peer 172.16.64.1 as-number 64512

[R3-bgp]peer 172.16.64.3 as-number 64512

[R3-bgp]peer 172.16.64.1 connect-interface l 0

[R3-bgp]peer 172.16.64.3 connect-interface l 0

[R3-bgp]peer 172.16.64.1 reflect-client

R4:

[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip ad 172.16.0.6 30
[R4-GigabitEthernet0/0/0]
May 12 2024 16:43:59-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R4-GigabitEthernet0/0/0]int g0/0/1
[R4-GigabitEthernet0/0/1]ip ad 172.16.0.9 30
May 12 2024 16:44:22-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R4-GigabitEthernet0/0/1]int l0
[R4-LoopBack0]ip ad 172.16.64.3 32
[R4-LoopBack0]int l1
[R4-LoopBack1]ip ad 172.16.130.1 24
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.255.255

[R4]bgp 64512

[R4-bgp]router-id 4.4.4.4

[R4-bgp]confederation id 2

[R4-bgp]confederation peer-as 64513

[R4-bgp]peer 172.16.64.2 as-number 64512

[R4-bgp]peer 172.16.64.2 connect-interface l 0

[R4-bgp]peer 172.16.64.6 as-number 64513

[R4-bgp]peer 172.16.64.6 connect-interface l 0

[R4-bgp]peer 172.16.64.6 ebgp-max-hop

R5:

[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip ad 172.16.0.21 30
[R5-GigabitEthernet0/0/0]
May 12 2024 16:46:30-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R5-GigabitEthernet0/0/0]int g0/0/1
[R5-GigabitEthernet0/0/1]ip ad 172.16.0.18 30
May 12 2024 16:47:01-08:00 R5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R5-GigabitEthernet0/0/1]int l0
[R5-LoopBack0]ip ad 172.16.64.4 32
[R5-LoopBack0]int l1
[R5-LoopBack1]ip ad 172.16.131.1 24
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 0
[R5-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.255.255

[R5]bgp 64513

[R5-bgp]router-id 5.5.5.5

[R5-bgp]confederation id 2

[R5-bgp]confederation peer-as 64512

[R5-bgp]peer 172.16.64.1 as-number 64512

[R5-bgp]peer 172.16.64.1 connect-interface l 0

[R5-bgp]peer 172.16.64.5 as-number 64513

[R5-bgp]peer 172.16.64.5 connect-interface l 0

[R5-bgp]peer 172.16.64.1 ebgp-max-hop

R6:

[R6]int g0/0/0
[R6-GigabitEthernet0/0/0]ip ad 172.16.0.17 30
[R6-GigabitEthernet0/0/0]
May 12 2024 16:48:59-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R6-GigabitEthernet0/0/0]int g0/0/1
[R6-GigabitEthernet0/0/1]ip ad 172.16.0.14 30
May 12 2024 16:49:28-08:00 R6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R6-GigabitEthernet0/0/1]int l0
[R6-LoopBack0]ip ad 172.16.64.5 32
[R6-LoopBack0]int l1
[R6-LoopBack1]ip ad 172.16.132.1 24
[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]area 0
[R6-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.255.255

[R6]bgp 64513

[R6-bgp]router-id 6.6.6.6

[R6-bgp]confederation id 2

[R6-bgp]peer 172.16.64.4 as-number 64513

[R6-bgp]peer 172.16.64.6 as-number 64513

[R6-bgp]peer 172.16.64.4 connect-interface l 0

[R6-bgp]peer 172.16.64.6 connect-interface l 0

[R6-bgp]peer 172.16.64.4 reflect-client

R7:

[R7]int g0/0/0
[R7-GigabitEthernet0/0/0]ip ad 172.16.0.13 30
[R7-GigabitEthernet0/0/0]
May 12 2024 16:52:28-08:00 R7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R7-GigabitEthernet0/0/0]int g0/0/1
[R7-GigabitEthernet0/0/1]ip ad 172.16.0.10 30
May 12 2024 16:52:58-08:00 R7 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R7-GigabitEthernet0/0/1]int g0/0/2
[R7-GigabitEthernet0/0/2]ip ad 78.0.0.1 24
May 12 2024 16:53:37-08:00 R7 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R7-GigabitEthernet0/0/2]int l0
[R7-LoopBack0]ip ad 172.16.64.6 32
[R7-LoopBack0]int l1
[R7-LoopBack1]ip ad 172.16.133.1 24
[R7]ospf 1 router-id 7.7.7.7
[R7-ospf-1]area 0
[R7-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.255.255

[R7]bgp 64513

[R7-bgp]router-id 7.7.7.7

[R7-bgp]confederation id 2

[R7-bgp]confederation peer-as 64512

[R7-bgp]peer 78.0.0.2 as-number 64512

[R7-bgp]peer 172.16.64.3 as-number 64512

[R7-bgp]peer 172.16.64.3 connect-interface l 0

[R7-bgp]peer 172.16.64.5 as-number 64513

[R7-bgp]peer 172.16.64.5 connect-interface l 0

[R7-bgp]peer 172.16.64.3 ebgp-max-hop

[R7-bgp]peer 172.16.64.3 next-hop-local

[R7-bgp]peer 172.16.64.5 next-hop-local

[R7]ip route-static 172.16.0.0 16 NULL 0

[R7]bgp 64513

[R7-bgp]network 172.16.0.0 16

R8:

[R8]int g0/0/0
[R8-GigabitEthernet0/0/0]ip ad 78.0.0.2 24
May 12 2024 16:55:24-08:00 R8 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R8-GigabitEthernet0/0/0]int l0
[R8-LoopBack0]ip ad 192.168.2.1 24
[R8-LoopBack0]int l1
[R8-LoopBack1]ip ad 11.0.0.1 24

[R8]bgp 3

[R8-bgp]router-id 8.8.8.8

[R8-bgp]peer 78.0.0.1 as-number 2

[R8-bgp]11.0.0.0 24

[R8]int t 0/0/0
[R8-Tunnel0/0/0]ip address 192.168.18.2 24
[R8-Tunnel0/0/0]tunnel-protocol gre 
[R8-Tunnel0/0/0]source 11.0.0.1
[R8-Tunnel0/0/0]destination 10.0.0.1
[R8]ip route-static 192.168.1.0 24 192.168.18.1

实验现象:

[R2]display ospf peer b

     OSPF Process 1 with Router ID 2.2.2.2
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          GigabitEthernet0/0/1             3.3.3.3          Full        
 0.0.0.0          GigabitEthernet0/0/2             5.5.5.5          Full        
 ----------------------------------------------------------------------------
[R2]

[R7]dis ospf peer b

     OSPF Process 1 with Router ID 7.7.7.7
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          GigabitEthernet0/0/0             6.6.6.6          Full        
 0.0.0.0          GigabitEthernet0/0/1             4.4.4.4          Full        
 ----------------------------------------------------------------------------

[R3]dis bgp peer 

 BGP local router ID : 3.3.3.3
 Local AS number : 64512
 Total number of peers : 2          Peers in established state : 2

  Peer            V          AS  MsgRcvd  MsgSent  OutQ  Up/Down       State Pre
fRcv

  172.16.0.2      4       64512       34       35     0 00:32:53 Established    
   0
  172.16.0.4      4       64512        8       10     0 00:06:27 Established    

[R4]dis bgp peer

 BGP local router ID : 4.4.4.4
 Local AS number : 64512
 Total number of peers : 1          Peers in established state : 1

  Peer            V          AS  MsgRcvd  MsgSent  OutQ  Up/Down       State Pre
fRcv

  172.16.0.3      4       64512        3        3     0 00:01:37 Established    

[R7]dis bgp peer

 BGP local router ID : 7.7.7.7
 Local AS number : 64513
 Total number of peers : 1          Peers in established state : 1

  Peer            V          AS  MsgRcvd  MsgSent  OutQ  Up/Down       State Pre
fRcv

  172.16.0.6      4       64513       14       15     0 00:12:19 Established    
 

[R4]dis bgp routing-table 

 BGP Local router ID is 4.4.4.4 
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 Total Number of Routes: 1
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>i  192.168.1.0        172.16.0.2      0          100        0      1i

[R7]dis bgp rou

 BGP Local router ID is 7.7.7.7 
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 Total Number of Routes: 1
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>i  192.168.1.0        172.16.1.21     0          100        0      (64512) 1i

思维导图:

  • 7
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值