Home > other >  BGP routing redistribution of the agreement
BGP routing redistribution of the agreement

Time:09-26

Computer newbie, do a lesson about the BGP protocol, the external and internal agreement protocol have good match, as shown in figure, R1, R2, R3 AS100, in the same autonomous system using the ospf protocol, R4, R5, R6, in AS200, using the rip protocol, R7 and R8, and R9, in AS300, using the eigrp protocol,
Want to routing redistribution, whether to give every border router configuration three elder brother of the agreement? If the configuration, network segment is connected, only add border or all? Routing redistribution specific how to do? Ask the great spirit show
R1 (config) # int f0/0
R1 (config - if) # IP add 192.168.1.1 255.255.255.0
R1 (config - if) # no shut
R1 (config - if) # exit
R1 (config) # int lo0
R1 (config - if) # IP add 172.168.0.1 255.255.255.0
R1 (config - if) # exit
R1 (config) # int lo1
R1 (config - if) # IP add 172.168.1.1 255.255.255.0
R1 (config - if) # exit
R1 (config) # int lo2
R1 (config - if) # IP add 172.168.2.1 255.255.255.0
R1 (config - if) # exit
R1 (config) # end
R1 (config) # router ospf 100
R1 (config - the router) #.net 192.168.1.0 0.0.0.255 area 0
R1 (config - the router) # exit
R1 (config) # router BGP 100
R1 (config - the router) #.net 172.168.0.0 mask 255.255.255.0
R1 (config - the router) #.net 172.168.1.0 mask 255.255.255.0
R1 (config - the router) #.net 172.168.2.0 mask 255.255.255.0
R1 (config - the router) # neigh 192.168.1.2 instead remot 100
R1 (config - the router) # neigh 192.168.1.2 instead next hop -s


R2 (config) # int f0/0
R2 (config - if) # IP add 192.168.2.1 255.255.255.0
R2 (config - if) # no shut
R2 (config - if) # exit
R2 (config) # int lo0
R2 (config - if) # IP add 2.2.2.2 255.255.255.0
R2 (config) # router ospf 100
R2 (config - the router) #.net 192.168.2.0 0.0.0.255 area 0
R2 (config - the router) # exit
R2 (config) # router BGP 100
R2 (config - the router) #.net 2.2.2.0 mask 255.255.255.0
R2 (config - the router) # neigh 192.168.2.2 remot 100
R2 (config - the router) # neigh 192.168.2.2 next hop -s
R2 (config - if) # exit


R3 (config) # int f0/0
R3 (config - if) # IP add 192.168.2.2 255.255.255.0
R3 (config - if) # no shut
R3 (config - if) # exit
R3 (config) # int f0/1
R3 (config - if) # IP add 192.168.1.2 instead 255.255.255.0
R3 (config - if) # no shut
R3 (config - if) # exit
R3 (config - if) # int s1/1
R3 (config - if) # IP add 192.168.4.1 255.255.255.0
R3 (config - if) # no shut
R3 (config - if) # exit
R3 (config) # int s1/0
R3 (config - if) # IP add 192.168.3.1 255.255.255.0
R3 (config - if) # no shut
R3 (config - if) # exit
R3 (config) # router ospf 100
R3 (config - the router) #.net 192.168.1.0 0.0.0.255 area 0
R3 (config - the router) #.net 192.168.2.0 0.0.0.255 area 0
R3 (config - the router) #.net 192.168.3.0 0.0.0.255 area 0
R3 (config - the router) #.net 192.168.4.0 0.0.0.255 area 0
R3 (config - the router) # exit
R3 (config) # router BGP 100
R3 (config - the router) # neigh 192.168.2.1 remot 100
R3 (config - the router) # neigh 192.168.2.1 next hop -s
R3 (config - the router) # neigh 192.168.1.1 remot 100
R3 (config - the router) # neigh 192.168.1.1 next hop -s
R3 (config - the router) # neigh 192.168.3.2 remot 200
R3 (config - the router) # neigh 192.168.4.2 remot 300
R3 (config - the router) # exit


R4 (config) # int f0/0
R4 (config - if) # IP add 192.168.8.1 255.255.255.0
R4 (config - if) # no shut
R4 (config - if) # exit
R4 (config) # int f0/1
R4 (config - if) # IP add 192.168.9.1 255.255.255.0
R4 (config - if) # no shut
R4 (config - if) # exit
R4 (config) # int s1/0
R4 (config - if) # IP add 192.168.3.2 255.255.255.0
R4 (config - if) # no shut
R4 (config - if) # exit
R4 (config) # int s1/1
R4 (config - if) # IP add 192.168.5.1 255.255.255.0
R4 (config - if) # no shut
R4 (config - if) # exit
R4 (config) # router rip
R4 (config - the router) # version 2
R4 (config - the router) # no auto - the summary
R4 (config - the router) #.net 192.168.3.0
R4 (config - the router) #.net 192.168.5.0
R4 (config - the router) #.net 192.168.8.0
R4 (config - the router) #.net 192.168.9.0
R4 (config - the router) # exit
R4 (config) # router BGP 200
R4 (config - the router) # neigh 192.168.3.1 remot 100
R4 (config - the router) # neigh 192.168.5.2 remot 300
R4 (config - the router) # neigh 192.168.8.2 remot 200
R4 (config - the router) # neigh 192.168.8.2 next hop -s
R4 (config - the router) # neigh 192.168.9.2 remot 200
R4 (config - the router) # neigh 192.168.9.2 next hop -s
R4 (config - the router) # exit


R5 (config) # int f0/0
R5 (config - if) # IP add 192.168.8.2 255.255.255.0
R5 (config - if) # no shut
R5 (config - if) # exit
R5 (config) # int lo0
R5 (config - if) # IP add 5.5.5.5 255.255.255.0
R5 (config - if) # exit
R5 (config) # router rip
R5 (config - the router) # version 2
R5 (config - the router) # no auto - the summary
R5 (config - the router) #.net 192.168.8.0
R5 (config - the router) # exit
R5 (config) # router BGP 200
R5 (config - the router) #.net 5.5.5.0 mask 255.255.255.0
R5 (config - the router) # neigh 192.168.8.1 remot 200
R5 (config - the router) # neigh 192.168.8.1 next hop -s


R6 (config) # int f0/0
R6 (config - if) # IP add 192.168.9.2 255.255.255.0
R6 (config - if) # no shut
R6 (config - if) # exit
R6 (config) # int lo0
R6 (config - if) # IP add 6.6.6.6 255.255.255.0
R6 (config - if) # exit
R6 (config) # router rip
R6 (config - the router) # version 2
R6 (config - the router) # no auto - the summary
R6 (config - the router) #.net 192.168.9.0
R6 (config - the router) # exit
R6 (config) # router BGP 200
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related