Mobil 68 Posted 2011-09-02 20:32:13 Share Posted 2011-09-02 20:32:13 Добрый День! У кого есть конфиг квагги на 2 аплинка фулфью поделитесь пожалуйста, очень нужно, а то на данный момент у нас исход пошел через 1 аплинк, а вход через другой, а хотелось бы сделать по нормальному с балансировкой и резервированием в случаи падения любого из них. Link to post Share on other sites
hellion 4 Posted 2011-09-02 20:46:46 Share Posted 2011-09-02 20:46:46 префикс листы пишешь на прием маршрутов от аплинка где фуллвью получаешь и все. типа le 23 не получать. Link to post Share on other sites
jack 25 Posted 2011-09-02 20:48:34 Share Posted 2011-09-02 20:48:34 hostname bgpd-router password 123 enable password 321 log file /var/log/quagga/bgpd.log log stdout ! router bgp 12345 bgp router-id x.x.x.x bgp log-neighbor-changes no synchronization network x.x.x.x/22 neighbor y.y.y.y remote-as 123 neighbor y.y.y.y next-hop-self neighbor y.y.y.y description 1(UA-IX) neighbor y.y.y.y soft-reconfiguration inbound neighbor y.y.y.y route-map Network-in in neighbor y.y.y.y route-map 1UA out neighbor y.y.y.y weight 2000 neighbor y.y.y.x remote-as 123 neighbor y.y.y.x next-hop-self neighbor y.y.y.x description 1(World) neighbor y.y.y.x soft-reconfiguration inbound neighbor y.y.y.x route-map Network-in in neighbor y.y.y.x route-map 1World out neighbor y.y.y.x weight 1000 neighbor z.z.z.z remote-as 125 neighbor z.z.z.z next-hop-self neighbor z.z.z.z description 2(World) neighbor z.z.z.z soft-reconfiguration inbound neighbor z.z.z.z route-map Network-in in neighbor z.z.z.z route-map 2World out neighbor z.z.z.z weight 1000 neighbor z.z.z.x remote-as 125 neighbor z.z.z.x next-hop-self neighbor z.z.z.x description 2(UA-IX) neighbor z.z.z.x soft-reconfiguration inbound neighbor z.z.z.x route-map Network-in in neighbor z.z.z.x route-map 2UA out neighbor z.z.z.x weight 2000 ! access-list 1 remark Localhost only access-list 1 permit 127.0.0.1 ! ip prefix-list fake description fake-nets ip prefix-list fake seq 15 permit 0.0.0.0/8 le 32 ip prefix-list fake seq 20 permit 127.0.0.0/8 le 32 ip prefix-list fake seq 30 permit 10.0.0.0/8 le 32 ip prefix-list fake seq 35 permit 172.16.0.0/12 le 32 ip prefix-list fake seq 40 permit 192.168.0.0/16 le 32 ip prefix-list fake seq 45 permit 169.254.0.0/16 le 32 ip prefix-list fake seq 50 permit 224.0.0.0/4 le 32 ip prefix-list fake seq 55 permit 240.0.0.0/4 le 32 ip prefix-list default description default route ip prefix-list default seq 10 permit 0.0.0.0/0 ip prefix-list Our-Nets seq 5 permit x.x.x.x/22 le 32 ip prefix-list Network permit x.x.x.x/22 ! ip as-path access-list 2 permit _6451[2-9]_ ip as-path access-list 2 permit _645[2-9][0-9]_ ip as-path access-list 2 permit _64[6-9][0-9][0-9]_ ip as-path access-list 2 permit _65[0-9][0-9][0-9]_ ! route-map Network-in deny 100 match as-path 1 ! route-map Network-in deny 110 match ip address prefix-list fake ! route-map Network-in deny 115 match ip address prefix-list default ! route-map Network-in deny 120 match ip address prefix-list Our-Nets ! route-map Network-in permit 200 set local-preference 100 ! route-map 1UA permit 100 match ip address prefix-list Network set as-path prepend 12345 12345 ! route-map 1World permit 100 match ip address prefix-list Network set as-path prepend 12345 12345 12345 ! route-map 2UA permit 130 match ip address prefix-list Network ! set as-path prepend 12345 ! route-map 2World permit 140 match ip address prefix-list Network set as-path prepend 12345 12345 12345 ! line vty access-class 1 ! держи =) Link to post Share on other sites
Mobil 68 Posted 2011-09-02 21:14:16 Author Share Posted 2011-09-02 21:14:16 Спасибо. Благодарен. Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now