cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1643
Views
0
Helpful
7
Replies

Routing Compilation using Static Routing, BGP, and OSPF

putra.research
Level 1
Level 1

Hi, I want to make routing in each area using different type of routing in Cisco Packet Tracer. Routers in Red area will use Static Routing, Blue area use BGP, and Green area use OSPF. And I have a few question. The first one, I have a problem when I configure the Static Routing in Router 0. Is there any solution for that? The second question is, how do I connect all the router so router in each area can connected even though they have a different routing configuration? I hope there are any solution. Thank you for helping

 

Routing Compilation.JPG

PS: I attach my Cisco Packet Tracer file below

1 Accepted Solution

Accepted Solutions

You can see static routes with this command actually.

 

 

Router#sh ip route static
S 192.168.20.0/24 [1/0] via 192.168.10.1
S 192.168.30.0/24 [1/0] via 192.168.10.1
S* 0.0.0.0/0 [1/0] via 192.168.10.1

 

R0 does not show because they are directly connected.

 

 

View solution in original post

7 Replies 7

Hi

 

 I am sharing  a working file. You can use for you study. And below, some explanation about what I did.

 

 

On R0, you can add a default route like:

 

0.0.0.0 0.0.0.0 192.168.30.2 (everything else, send to .2)

And then, you add the static route for specifics, just like you did

 

R1 need on default route pointing to R0
0.0.0.0 0.0.0.0 192.168.10.1


R2 need one default route poinintg to R0
0.0.0.0 0.0.0.0 192.168.20.1

 

R8 need to have static routes pointing to 192.168.30.1 for all networks
192.168.10.0
192.168.20.0
192.168.30.0


R8 - Redistribute static
!
router bgp 100
bgp log-neighbor-changes
no synchronization
neighbor 192.168.70.2 remote-as 200
network 192.168.70.0
network 192.168.30.0
redistribute static
!




R7: Redistribute ospf into BGP and BGP into OSPF

!
router ospf 1
log-adjacency-changes
redistribute bgp 200
network 192.168.40.0 0.0.0.255 area 0
!
router bgp 200
bgp log-neighbor-changes
no synchronization
neighbor 192.168.70.1 remote-as 100
network 192.168.70.0
network 192.168.40.0
redistribute ospf 1
!

Anyway thank you so much for your help, but I think I'm still have a problem with static routing in Router 0. I've configure the Static Routing like you have tell, but when I check using command show ip route in CLI, it doesn't show the Static Routing in the IP table. As long as I know (CMIIW) if the routing success it will show in IP Table. Did I make a mistake when configuring the static routing?

Router.JPG

Only default route will be shown:

 

C 192.168.10.0/24 is directly connected, Serial2/0
C 192.168.20.0/24 is directly connected, Serial3/0
C 192.168.30.0/24 is directly connected, Serial6/0
S* 0.0.0.0/0 [1/0] via 192.168.30.2

 

The static route will not.

 

Using the file I sent, I could sucessfuly ping from one end to another, so, routing problem must not have.

 

 

Ah I see. Thank you for the explanation. But I'm sorry, can you send again your file? 'cause I think I can't find your file from your reply above

You can see static routes with this command actually.

 

 

Router#sh ip route static
S 192.168.20.0/24 [1/0] via 192.168.10.1
S 192.168.30.0/24 [1/0] via 192.168.10.1
S* 0.0.0.0/0 [1/0] via 192.168.10.1

 

R0 does not show because they are directly connected.

 

 

Yes there is problem 
you config static route to subnet already connect to your router ???
the static route must include 
Subnet in other Router & outlet of your router to that router 
or 
Subnet in other Router & next-hop of that router 

Hello

  1. external BGP rtrs - advertise a default route towards each site bgp rtr.
    <router bgp x
    neighbor x.x.x.x default-information originate 


  2. Static route site bgp rtr -   redistribute all static routes into bgp that point towards each static router,
    <router bgp x
    redistribute static


  3. Ospf site bgp rtr -   Redistribute ospf into bgp
    < router bgp xx
    redistribute ospf x match external 1 external 2

Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking for a $25 gift card