กุทำเอง อาจดูงงๆ เอาไป modify ใช้ได้
interface FastEthernet0/0
description " LAN Interface "
ip address x.147.103.145 255.255.255.240
interface FastEthernet0/1
description "WAN Interface"
ip address y.168.173.14 255.255.255.252
--------------------------------------
router bgp AS <--- AS ของ routerเรา
no synchronization
network ip Loopback mask 255.255.255.255 <--- ip Loopback ถ้ามีก็ประกาศโยน
network x.147.103.144 mask 255.255.255.240 <--- ชุด ip ที่จะโยน
neighbor y.168.173.13 remote-as AS <--- AS ที่โยน
neighbor y.168.173.13 route-map WAN_in in <--- รับมาทาง peer ของ Fa 0/1
neighbor y.168.173.13 route-map LAN_out out <--- โยนออกไปทาง peer ของ Fa 0/1
no auto-summary
-------------------------------------------------
route-map WAN_in permit 10
match ip address prefix-list prefix_WAN_in
route-map LAN_out permit 10
match ip address prefix-list prefix_LAN_out
-------------------------------------------------
ip prefix-list prefix_LAN_out seq 1000 permit x.147.103.144/28
ip prefix-list prefix_LAN_out seq 1010 permit ip Loopback/32
ip prefix-list prefix_WAN_in seq 1000 permit 0.0.0.0/0 <--- ทำเป็น default รับทั้งหมด
------------------------------------------------------------