segment has reachability to VLAN 43
Directions
" Configure the topology per the diagram
" Configure BGP on R1, R2, R3, R4, and R5 per the diagram
" R1 and R3 should use the private AS 65013 and the public AS 2
" R2 should use the private AS 65002 and the public AS 2
" R1 should peer with R3 and R4
" R2 should peer with R3 and R5
" Advertise R3’s Ethernet into BGP on R3
" Advertise VLAN 5 into BGP on R5
" Advertise VLAN 43 into BGP on R4
" Configure R1 to set VLAN 43 to the community Local-AS as it is received from
R4
" Configure the topology per the diagram
" Configure BGP on R1, R2, R3, R4, and R5 per the diagram
" R1 and R3 should use the private AS 65013 and the public AS 2
" R2 should use the private AS 65002 and the public AS 2
" R1 should peer with R3 and R4
" R2 should peer with R3 and R5
" Advertise R3’s Ethernet into BGP on R3
" Advertise VLAN 5 into BGP on R5
" Advertise VLAN 43 into BGP on R4
" Configure R1 to set VLAN 43 to the community Local-AS as it is received from
R4
配置:
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 eigrp 2
network 155.1.13.1 0.0.0.0
no auto-summary
!
router bgp 65013
bgp confederation identifier 2
neighbor 155.1.13.3 remote-as 65013
neighbor 155.1.13.3 next-hop-self
neighbor 155.1.13.3 send-community
neighbor 155.1.146.4 remote-as 3
neighbor 155.1.146.4 route-map LOCAL_AS in
!
route-map LOCAL_AS permit 10
set community local-as
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 eigrp 2
network 155.1.13.1 0.0.0.0
no auto-summary
!
router bgp 65013
bgp confederation identifier 2
neighbor 155.1.13.3 remote-as 65013
neighbor 155.1.13.3 next-hop-self
neighbor 155.1.13.3 send-community
neighbor 155.1.146.4 remote-as 3
neighbor 155.1.146.4 route-map LOCAL_AS in
!
route-map LOCAL_AS permit 10
set community local-as
R2:
interface FastEthernet0/0
ip address 192.10.1.2 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface FastEthernet0/0
ip address 192.10.1.2 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 155.1.0.2 255.255.255.0
frame-relay interface-dlci 205
!
interface Serial0/1
ip address 155.1.23.2 255.255.255.0
!
router eigrp 2
network 155.1.23.2 0.0.0.0
no auto-summary
!
router bgp 65002
bgp confederation identifier 2
bgp confederation peers 65013
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.23.3 remote-as 65013
ip address 155.1.0.2 255.255.255.0
frame-relay interface-dlci 205
!
interface Serial0/1
ip address 155.1.23.2 255.255.255.0
!
router eigrp 2
network 155.1.23.2 0.0.0.0
no auto-summary
!
router bgp 65002
bgp confederation identifier 2
bgp confederation peers 65013
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.23.3 remote-as 65013
R3:
interface Ethernet0/0
ip address 155.1.37.3 255.255.255.0
!
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
interface Serial1/3
ip address 155.1.23.3 255.255.255.0
clockrate 64000
!
router eigrp 2
network 155.1.13.3 0.0.0.0
network 155.1.23.3 0.0.0.0
no auto-summary
!
router bgp 65013
bgp confederation identifier 2
bgp confederation peers 65002
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 65013
neighbor 155.1.13.1 next-hop-self
neighbor 155.1.23.2 remote-as 65002
interface Ethernet0/0
ip address 155.1.37.3 255.255.255.0
!
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
interface Serial1/3
ip address 155.1.23.3 255.255.255.0
clockrate 64000
!
router eigrp 2
network 155.1.13.3 0.0.0.0
network 155.1.23.3 0.0.0.0
no auto-summary
!
router bgp 65013
bgp confederation identifier 2
bgp confederation peers 65002
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 65013
neighbor 155.1.13.1 next-hop-self
neighbor 155.1.23.2 remote-as 65002
R4:
interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
router bgp 3
network 204.12.1.0
neighbor 155.1.146.1 remote-as 2
interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
router bgp 3
network 204.12.1.0
neighbor 155.1.146.1 remote-as 2
R5:
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.2 502 broadcast
!
interface Ethernet0/0
ip address 155.1.58.5 255.255.255.0
!
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.2 remote-as 2
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.2 502 broadcast
!
interface Ethernet0/0
ip address 155.1.58.5 255.255.255.0
!
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.2 remote-as 2
检验:
Rack1R1#show ip bgp 204.12.1.0
BGP routing table entry for 204.12.1.0/24, version 5
Paths: (1 available, best #1, table Default-IP-Routing-
Table, not advertised outside local AS)
Advertised to non peer-group peers:
155.1.13.3
3
155.1.146.4 from 155.1.146.4 (150.1.4.4)
Origin IGP, metric 0, localpref 100, valid, external,
best
Community: local-AS
BGP routing table entry for 204.12.1.0/24, version 5
Paths: (1 available, best #1, table Default-IP-Routing-
Table, not advertised outside local AS)
Advertised to non peer-group peers:
155.1.13.3
3
155.1.146.4 from 155.1.146.4 (150.1.4.4)
Origin IGP, metric 0, localpref 100, valid, external,
best
Community: local-AS
插入表情