10-17-2024 04:46 AM
Hello, I'm trying to add a default static route from a 2811 router called main branch 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.
Solved! Go to Solution.
10-17-2024 04:52 AM
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.
10-17-2024 04:47 AM
OSPF is configured between the three routers BUT not the layer 3 switch
10-17-2024 04:51 AM
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 ?
10-17-2024 05:18 AM
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.
10-17-2024 05:27 AM - edited 10-17-2024 05:27 AM
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
10-17-2024 04:52 AM
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.
10-17-2024 05:25 AM
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?
10-17-2024 04:53 AM
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.
10-17-2024 05:29 AM
10-17-2024 04:56 AM
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.
10-17-2024 05:30 AM
10-17-2024 06:10 AM - edited 10-17-2024 06:13 AM
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
10-17-2024 06:37 AM
"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.
10-17-2024 06:44 AM
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.
10-17-2024 05:26 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide