Objective: Configure manual next-hop
modification via a route-map where necessary
to gain reachability between R3’s Ethernet segment and VLAN 5
to gain reachability between R3’s Ethernet segment and VLAN 5
Directions
" Configure the topology per the diagram
" Configure BGP on R1, R3, R4, and R5 per the diagram
" R1 should peer with R3 and R4
" R4 should peer with R5
" Advertise R3’s Ethernet segment into BGP
" Advertise R5’s Ethernet segment into BGP
" Configure route-maps on R1 and R4 to manually modify the next-hop values
advertised to R3 and R5 respectively
" Configure the topology per the diagram
" Configure BGP on R1, R3, R4, and R5 per the diagram
" R1 should peer with R3 and R4
" R4 should peer with R5
" Advertise R3’s Ethernet segment into BGP
" Advertise R5’s Ethernet segment into BGP
" Configure route-maps on R1 and R4 to manually modify the next-hop values
advertised to R3 and R5 respectively
配置:
R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!
router bgp 2
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 route-map SET_NEXT_HOP out
neighbor 155.1.146.4 remote-as 1
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!
router bgp 2
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 route-map SET_NEXT_HOP out
neighbor 155.1.146.4 remote-as 1
!
route-map SET_NEXT_HOP permit 10
set ip next-hop 155.1.13.1
route-map SET_NEXT_HOP permit 10
set ip next-hop 155.1.13.1
R3:
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
router bgp 2
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 2
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
router bgp 2
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 2
R4:
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
interface Serial0/1
ip address 155.1.45.4 255.255.255.0
!
router bgp 1
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 route-map SET_NEXT_HOP out
neighbor 155.1.146.1 remote-as 2
!
route-map SET_NEXT_HOP permit 10
set ip next-hop 155.1.45.4
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
interface Serial0/1
ip address 155.1.45.4 255.255.255.0
!
router bgp 1
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 route-map SET_NEXT_HOP out
neighbor 155.1.146.1 remote-as 2
!
route-map SET_NEXT_HOP permit 10
set ip next-hop 155.1.45.4
R5:
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
interface Serial0/1
ip address 155.1.45.5 255.255.255.0
clockrate 64000
!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.3 remote-as 2
neighbor 155.1.45.4 remote-as 1
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
interface Serial0/1
ip address 155.1.45.5 255.255.255.0
clockrate 64000
!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.3 remote-as 2
neighbor 155.1.45.4 remote-as 1
验证:
Rack1R3#ping 155.1.5.5 source
155.1.37.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
seconds:
Packet sent with a source address of 155.1.37.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
56/60/72 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
seconds:
Packet sent with a source address of 155.1.37.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
56/60/72 ms
Rack1R1#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 155.1.146.4
0 1 i
*>i155.1.37.0/24 155.1.13.3 0 100
0 i
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 155.1.146.4
0 1 i
*>i155.1.37.0/24 155.1.13.3 0 100
0 i
Rack1R3#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.13.1 0 100
0 1 i
*> 155.1.37.0/24 0.0.0.0 0
32768 i
Rack1R4#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.45.5 0 100
0 i
*> 155.1.37.0/24 155.1.146.1
0 2 i
Rack1R5#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 0.0.0.0 0
32768 i
*>i155.1.37.0/24 155.1.45.4 0 100
0 2 i
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.13.1 0 100
0 1 i
*> 155.1.37.0/24 0.0.0.0 0
32768 i
Rack1R4#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.45.5 0 100
0 i
*> 155.1.37.0/24 155.1.146.1
0 2 i
Rack1R5#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 0.0.0.0 0
32768 i
*>i155.1.37.0/24 155.1.45.4 0 100
0 2 i
插入表情