CISCO 4700M configuration file の BGP 部分設定例


! 
ip subnet-zero 
! 
interface Ethernet0 
 ip address 202.249.3.22 255.255.255.192 
 no ip proxy-arp 
 media-type 10BaseT 
! 
interface Serial0 
 ip address 192.168.1.254 255.255.255.252 
 bandwidth 1536 
! 
router bgp 65510 
 no synchronization 
 network 192.168.1.0 mask 255.255.255.0 
 network 192.168.16.0 mask 255.255.254.0 
 aggregate-address 192.168.16.0 255.255.254.0 summary-only 
 redistribute static 
 neighbor C7507 peer-group 
 neighbor C7507 remote-as 65510 
 neighbor C7507 version 4 
 neighbor BARNET peer-group 
 neighbor BARNET remote-as 65500 
 neighbor BARNET version 4 
 neighbor BARNET distribute-list 100 out 
 neighbor BARNET filter-list 1 out 
 neighbor BARNET filter-list 20 in 
 neighbor BAZ peer-group 
 neighbor BAZ remote-as 65501 
 neighbor BAZ version 4 
 neighbor BAZ distribute-list 100 out 
 neighbor BAZ filter-list 1 out 
 neighbor BAZ filter-list 21 in 
 neighbor 192.168.1.253 peer-group C7507 
 neighbor 202.249.3.20 peer-group BARNET 
 neighbor 202.249.3.21 peer-group BAZ 
 no auto-summary 
! 
ip classless 
ip as-path access-list 1 permit ^$ 
ip as-path access-list 1 deny .* 
ip as-path access-list 20 permit ^65500$ 
ip as-path access-list 20 deny .* 
ip as-path access-list 21 permit ^65501$ 
ip as-path access-list 21 permit ^65501.*65520$ 
ip as-path access-list 21 permit ^65501.*65521$ 
ip as-path access-list 20 deny .*
access-list 100 deny ip host 202.249.3.0  host 255.255.255.192 
access-list 100 permit ip host 192.168.1.0  host 255.255.255.0 
access-list 100 permit ip host 192.168.16.0  host 255.255.254.0 
access-list 100 deny ip any any 
! 
end