Manual route injection
1. via Network command
2. via Redistribution
By Network command
In R2, R2(config)# router bgp 6500
# network 20.1.1.0 mask 255.255.255.0
# do s hip bgp
Network Next-hop Metric locPrf Weight Path
*> 20.1.1.0 0.0.0.0 0 0 i
Note***: 0.0.0.0 means “self-interface”
By Redistribution
*** 203.81.75.0 ႏွင့္ 203.81.76.0 network 2ခုကို ဖယ္ၿပီး redistribute လုပ္ၾကည့္ပါမယ္။
In R2, R2(config)# access-list 50 deny 203.81.75.0
# access-list 50 deny 203.81.76.0
# route-map FILTER
# match ip address 50
# router bgp 6500
# redistribute connected route-map FILTER
# no auto-summary
အဲတာအမွားႀကီး… connected ဆိုတာေလးကဖ်က္ေနတာဗ်… connected ဆိုေတာ့ 10.1.1.0 network ပါ redistribution process ထဲပါလာတယ္ေလ။ ဒီ configuration ႏွင့္ဆိုအဆင္မေျပေသးဘူးေပါ့ဗ်ာ… access-list ကိုပဲဖို႔ပဲရွိပါတယ္။ အရင္ access-list 50 ကိုဖ်က္ၿပီး အသစ္ျပန္ေရးရပါမယ္…
R2(config)# no access-list 50
# access-list 50 permit 203.81.71.0
# access-list 50 permit 203.81.72.0
# access-list 50 permit 203.81.73.0
# access-list 50 permit 203.81.74.0
15/6/2011
No comments:
Post a Comment