ISP1 AS100 10.10.176.0/20
China ISP AS200 interface 1.1.1.0/30
AS200, AS300 ийн тохиргоо тодорхой тул зөвхөн ISP1 ийн тохиргоог оруулав.
router bgp 100
no synchronization
bgp log-neighbor-changes
network 10.10.0.0 mask 255.255.240.0
network 10.10.0.0 mask 255.255.248.0
network 10.10.8.0 mask 255.255.248.0
neighbor 1.1.1.1 remote-as 200
neighbor 1.1.1.1 description china 100mb
neighbor 1.1.1.1 version 4
neighbor 1.1.1.1 prefix-list default in
neighbor 1.1.1.1 prefix-list ispblock1 out
neighbor 1.1.1.1 filter-list 20 in
neighbor 1.1.1.1 filter-list 30 out
neighbor 1.1.1.1 route-map isp out
neighbor 2.2.2.1 remote-as300
neighbor 2.2.2.1 description russia 100mb
neighbor 2.2.2.1 version 4
neighbor 2.2.2.1 prefix-list default in
neighbor 2.2.2.1 prefix-list ispblock2 out
neighbor 2.2.2.1 filter-list 10 in
neighbor 2.2.2.1 filter-list 30 out
!
ip prefix-list ispblock seq 5 permit 10.10.0.0/20
ip prefix-list ispblock seq 5 permit 10.10.0.0/21
ip prefix-list ispblock2 seq 5 permit 10.10.0.0/20
ip prefix-list ispblock2 seq 5 permit 10.10.8.0/21
ip prefix-list aggregate seq 5 permit 10.10.0.0/20
ip prefix-list default seq 10 permit 0.0.0.0/0
ip as-path access-list 10 permit ^300$
ip as-path access-list 20 permit ^200$
ip as-path access-list 30 permit ^$
ip bgp-community new-format
!
route-map isp permit 10
match ip address prefix-list aggregate
set metric 10
set as-path 100
!
ip route 0.0.0.0 0.0.0.0 1.1.1.1
ip route 0.0.0.0 0.0.0.0 2.2.2.1
ip route 10.10.0.0 255.255.240.0 null 0
ip route 10.10.0.0 255.255.248.0 null 0
ip route 10.10.8.0 255.255.248.0 null 0 гээд боллоо.
Дараа коммандуудын тайлбар ба илүү нарийвчилсан жишээ авч үзье.
No comments:
Post a Comment