COMPUTER TIPS

Home | Previous Page| About Us | Set As Home Page

 

Google

  Google Groups Beta Subscribe to Computer free Tips                                                  

Email:

March, 14 , 08                    Today's Tip                              Add to Favorites  

                                                                              

   

Previous Tips e

12-03-08
11-03-08
10-03-08
09-03-08
08-03-08
07-03-08
06-03-08
05-03-08
04-03-08
03-03-08
02-03-08
01-03-08
28-02-08
27-02-08
26-02-08
25-02-08
24-02-08
23-02-08
22-02-08
21-02-08
20-02-08
19-02-08
18-02-08
17-02-08
16-02-08
15-02-08
14-02-08
13-02-08
12-02-08
11-02-08
10-02-08
09-02-08
08-02-08
07-02-08
06-02-08
05-02-08
04-02-08
03-02-08
02-02-08
01-02-08
30-01-08
29-01-08
28-01-08
27-01-08
26-01-08
25-01-08
24-01-08
23-01-08
22-01-08
21-01-08
20-01-08
19-01-08
18-01-08
17-01-08
16-01-08
15-01-08
14-01-08
13-01-08
12-01-08
11-01-08
10-01-08
09-01-08
08-01-08
07-01-08
06-01-08
05-01-08
04-01-08
03-01-08
02-01-08
01-01-08
30-12-07
29-12-07
28-12-07
27-12-07
26-12-07
25-12-07
24-12-07
23-12-07
22-12-07
21-12-07
20-12-07
19-12-07
18-12-07
17-12-07
16-12-07
15-12-07
14-12-07
13-12-07
12-12-07
11-12-07
10-12-07
09-12-07
08-12-07
07-12-07
06-12-07
05-12-07
04-12-07
03-12-07
02-12-07
01-12-07
30-11-07
29-11-07
28-11-07
27-11-07
26-11-07
25-11-07
24-11-07
23-11-07
22-11-07
21-11-07
20-11-07
19-11-07
18-11-07
17-11-07
16-11-07
15-11-07
14-11-07
13-11-07
12-11-07
11-11-07
10-11-07
09-11-07
08-11-07
07-11-07
06-11-07
05-11-07
04-11-07
03-11-07
02-11-07
01-11-07

October 07-Tips

September 07-Tips

August 07-Tips

July 07- Tips

June 07- Tips

May 07- Tips

April 07- Tips

March, 07- Tips

February, 07- Tips

January, 07- Tips

 

 

 

 

 

 

How to configure BGP with weight attribute? 

 

 

 

BGP stands for Border Gateway Protocol is true built-in policy based routing protocols. BGP uses different attribute to implement these polices in route selection process between different autonomous systems. There are some main attributes that BGP uses in route selection process. 

  • Weight

  • Local preference

  • Multi-exit Discriminator or MED

  • Origin

  • AS_Path

  • Next Hop

  • Community

We will configure here only weight attribute in detail and the remaining attributes will be discussed in the next tips.

The weight attribute basically a Cisco proprietary technology and considered as first attribute in BGP. The default value of weight is 0 and the range is from 0 to 65535. If we change the weight value of one router that change will not propagate to other router and the route with maximum weight value will be considered as the best route.

Today tip will help you configure BGP between two different autonomous systems. In this case, we will try to configure four different routers with routing protocols RIP and then complete the all routing tables using BGP. At the end, we will change the weight of one route in order to give it preference over a lower one

Follow the network topology of four different class networks in the given figure:

Configuration BGP on Router A

In global configuration Mode: 

A(config)# router bgp 10

A (config-router) # neighbor 40.1.1.2 remote-as 20

A (config-router) # neighbor 70.1.1.1 remote-as 20

A (config-router) # network 210.100.30.0

A (config-router) #end

Configuration to Enable BGP & RIP on Router B

In global configuration Mode: 

B(config)# router bgp 20

B (config-router) # neighbor 40.1.1.1 remote-as 10

B (config-router) # neighbor 50.1.1.2 remote-as 20

B (config-router) # neighbor 60.1.1.2 remote-as 20

B (config-router) #end

B (config) #router rip

B (config-router) # network 40.0.0.0

B (config-router) # network 50.0.0.0

B (config-router) #end

Configuration to Enable BGP & RIP on Router C

In global configuration Mode: 

C(config)# router bgp 20

C (config-router) # neighbor 50.1.1.1 remote-as 20

C (config-router) # neighbor 60.1.1.2 remote-as 20

C (config-router) #end

C (config) #router rip

C (config-router) # network 50.0.0.0

C (config-router) # network 60.0.0.0

C (config-router) #end

Configuration to Enable BGP & RIP on Router D

In global configuration Mode: 

D(config)# router bgp 20

D (config-router) # neighbor 70.1.1.2 remote-as 10

D (config-router) # neighbor 50.1.1.1 remote-as 20

D (config-router) # neighbor 60.1.1.1 remote-as 20

D (config-router) #end

D (config) #router rip

D (config-router) # network 70.0.0.0

D (config-router) # network 60.0.0.0

D (config-router) #end  

Now run show command to display the BGP updates on router C with default weight value.

C #show ip bgp

 Then verify the routes in router C routing table, run the command

C #show ip route 

Now change the weight value on router C in order to give it preference over a lower one. 

In global configuration Mode: 

C(config)# router bgp 20

C (config-router) # neighbor 50.1.1.1 weight 100

Now again run show command to display the BGP updates on router C with weight value 100.

C #show ip bgp

                          

Yesterday Tip.

How to logoff your computer automatically after a period of inactivity?