cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
999
Views
5
Helpful
24
Replies

Default static routes

w0463849
Level 1
Level 1

Hello, I'm trying to add a default static route from a 2811 router called main branchTopology_Today_2.png to a 3560 layer 3 switch. The 2811 router is connected via a console cable. I have no idea how to do IP routing. Please help.

 

Topology_Today.png

1 Accepted Solution

Accepted Solutions

@w0463849 

 On the router, you run this command

conf t

ip route 172.16.144.0 0.0.0.255 10.10.1.2

On the layer3 switch you do this

conf t

ip route 0.0.0.0 0.0.0.0 10.10.1.1

That´s it.

View solution in original post

24 Replies 24

w0463849
Level 1
Level 1

OSPF is configured between the three routers BUT not the layer 3 switch

M02@rt37
VIP
VIP

Hello @w0463849 

please clarify your concern.

You need to configure OSPF on the 3 2811 routers ?

Why static route (default route) is needed in your case ?

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Yes, I already configured OSPF on the three routers. I need a default static route because I need to ping the server from the computers.

Ok @w0463849 

So don't use default route.

Configure a static route on 2811 router pointing the IP add of the server. Next hop as the L3 Switch. The Gateway of the server is configured on the L3 Switch ?

Redistribute the static route form your ospf instance on that 2811 router:

router ospf x

redistribute static

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

@w0463849 

 On the router, you run this command

conf t

ip route 172.16.144.0 0.0.0.255 10.10.1.2

On the layer3 switch you do this

conf t

ip route 0.0.0.0 0.0.0.0 10.10.1.1

That´s it.

Hi again :), so when I run those commands I'm able to ping 10.10.1.2 but for the server I get destination unreachable. Is 0.0.0.255 a wildcard mask? Am I supposed to use a wildcard mask instead of a subnet mask?Screenshot_3.png

balaji.bandi
Hall of Fame
Hall of Fame

First on both device Router and Switch  - ip routing (command to enable ip routing)

From Router you want to route the Traffic to Switch

you need to add routing as below :

you can add default route :

ip route 0.0.0.0 0.0.0.0 10.10.1.2 or specific route as below

ip route 172.16.114.0 255.255.255.248 10.10.1.2

On the Switch also you need to add Route back towards Router :

ip route 0.0.0.0 0.0.0.0 10.10.1.1

This is high level - if you need more help post below output from all devices.

show run

show ip route

show ip interface brief

Note : make sure PC have no firewall enable which blocking the pings.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

I attached the file if you want to check it out. Firewalls are disabled and I tried all the commands you guys suggested to no avail. I'm going to take a break and come back to this later.

Joseph W. Doherty
Hall of Fame
Hall of Fame

If you're pinging the LAN side of the 3650, it too will need how to route to other IPs.

On your 3650 you could use a default route to the main branch router and on that router a static route to the /29.

You could also consider using OSPF on the 3650.

If you need help with the two static route, let me know.

Here is the file if you want to check it out.

@w0463849 

So don't use default route.

Configure a static route on 2811 router pointing the IP add of the server. Next hop as the L3 Switch. The Gateway of the server is configured on the L3 Switch ?

Redistribute the static route from your ospf instance on that 2811 router:

router ospf x

redistribute static

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

"Configure a static route on 2811 router pointing the IP add of the server."

You could do just that, but possibly a more common, or better, practice would be to route to the subnet, i.e. the /29, not just the one host.  Even in this case, if you route only to the server host, it would preclude pinging the /29's router IP.

I've been responding from my phone, so unable, at the moment, to open your lab.

With @Flavio Miranda reply, I may not need to unless you want to see using OSPF on the L3 switch (my preferred approach) and/or seeing how to generate a default route in OSPF without need to redistribute statics.

w0463849
Level 1
Level 1

 Here is the file guys. Feel free to check it out. I'm working on an assignment for school and IP routing is just confusing me...

Review Cisco Networking for a $25 gift card