You are on page 1of 7

Route

BGP BGP,

BGP
:

routemap maptag [[permit | deny] | [sequencenumber]]

MYMAP 10
20

MYMAP-10 ( .)

MYMAP-20 ( .)

MYMAP , 10







IP 1.1.1.1,

5 :
match ip address 1.1.1.1
set metric 5





20

Cisco IOS Cisco IOS 11.2 BGP


IP
Cisco IOS 11.2
:

match aspath
match community
match clns
match interface
match ip address
match ip nexthop
match ip routesource
match metric
match routetype
match tag
The related commands for set are:
set aspath
set clns
set automatictag
set community
set interface
set default interface
set ip default nexthop
set level
set localpreference

set metric
set metrictype
set nexthop
set origin
set tag
set weigh

1
RTA RTB Information Protocol (RIP) RTA RTC BGP RTA
BGP redistributes RTA
RTB 170.10.0.0 2
5

:
RTA#
router rip
network 3.0.0.0
network 2.0.0.0
network 150.10.0.0
passiveinterface Serial0
redistribute bgp 100 routemap SETMETRIC
router bgp 100

neighbor 2.2.2.3 remoteas 300


network 150.10.0.0
routemap SETMETRIC permit 10
match ipaddress 1
set metric 2
routemap SETMETRIC permit 20
set metric 5
accesslist 1 permit 170.10.0.0 0.0.255.255

IP 170.10.0.0 2




5
: " ?"

2
1 , AS100 170.10.0.0
IP
RTC:
RTC#
router bgp 300
network 170.10.0.0
neighbor 2.2.2.2 remoteas 100
neighbor 2.2.2.2 routemap STOPUPDATES out
routemap STOPUPDATES permit 10
match ip address 1
accesslist 1 deny 170.10.0.0 0.0.255.255

accesslist 1 permit 0.0.0.0 255.255.255.255

BGP

BGP :


:
network networknumber [mask networkmask]



Gateway Protocol (IGRP) RIP
BGP
BGP BGP
BGP 4 (BGP4) subnetting
supernetting 200

:
RTA# router bgp 1
network 192.213.0.0 mask 255.255.0.0
ip route 192.213.0.0 255.255.0.0 null 0

192.213.0.0/16 / 16 supernet
C octets 16

: 192.213.0.0


BGP IGP BGP
IGP IGRP,
(OSPF) RIP, Gateway
Protocol (EIGRP)

BGP;
BGP

:
RTA 129.213.1.0 175.220.0.0 RTC
RTC:

129.213.1.0 AS 129.213.1.0; AS100



:
RTC#
router eigrp 10
network 175.220.0.0
redistribute bgp 200
defaultmetric 1000 100 250 100 1500
router bgp 200
neighbor 1.1.1.1 remoteas 300
neighbor 1.1.1.1 distributelist 1 out
redistribute eigrp 10
accesslist 1 permit 175.220.0.0 0.0.255.255

as200

OSPF BGP IGPs OSPF 1 BGP


, NSSA
OSPF BGP

You might also like