cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1100
Views
1
Helpful
5
Replies

Need help with IP routing

L L P
Level 1
Level 1

So I'm supposed to "Configure route to the 172.16.2.0/24 network via 172.16.1.50" and "Access web page at 172.16.2.100" I am pretty new to IP routing so I need some help with this. I put in the command "ip route 172.16.2.0 255.255.255.0 172.16.1.50" and it went through but I can't access the page so something must be wrong. I attached my router and switch configs to the post so you can see how everything is set up. I have the router and switch connected to an esxi server.

Edit: Nevermind, nothing was wrong with my configuration it was a problem with someone elses router and they fixed it now it works.

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

If the Client in the same broadcast domain and network of 172.16.2.0/24? then the user goes directly to 172.16.2.10 (instead via 172.16.1.150)

or is the source is a different network?

what is the use case here? Why are you looking to U-Turn the traffic going forward and return to the same network?

Looking at config - ip default-gateway 10.218.30.1  (this works for Layer 2) you need to to change this to 

IP route 0.0.0.0 0.0.0.0  10.218.30.1 (make sure check IP routing enabled ?)

High level as i understand you need PBR

example of any source network going to 172.16.1.50 need to redirect to 172.16.2.100 (is this correct ?)

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/12-2/25ew/configuration/guide/conf/pbroute.pdf

 

 

 

BB

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

How to Ask The Cisco Community for Help

Tbh I'm not exactly sure what the point of it is either but all I know is the directions say to do that. I was confused as well since the server is on the 10.218.30.0 network so I don't get how 172.16.2.0 comes in. It's all very confusing to me.

can you totally post a picture of the topology ?

 I'm not exactly sure what the point of it is either but all I know is the directions say to do that. 

Technology does not work like a magic, one should understand before deploy - if not you will have sleepless nights.

if you are the not one doing it, don't touch it...ask some one who does to understand what we suggested and explain more in detailed where the source coming from, what is the use case here?

 

BB

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

How to Ask The Cisco Community for Help

Hello
You have what is known as router on a stick (ROAS) being that the rtr is performing the inter-vlan-routing for you LAN utilizing the encapsulated sub interfaces for your vlans

Looking at your router cfg. it has no default route, but its assume from this output that the physical interface GigabitEthernet0/0/0 -172.16.1.218  is the “wan” interface.

However you do not have a default route pointing to this interface or its directly attach next hop ip address so the rtr has no way of knowing how to route externally.

Your static route look okay, it is stating to reach 172.16.2.0/4 go via GigabitEthernet0/0/0 however it would not be required if you had a default route as Ive stated previously

Presently the ip -default-gateway would be ignored as the rtr by default is enabled for ip routing, so u less you have disable ip routing the default-gateway is irrelevant.

The switch does have a trunk port connecting towards the rtr , this is so its able to send/receive the encapsulated traffic to/from the rtr

All I can see is you need to do on the switch is enable the access ports and assign them to the appropriate vlans that each host need to reside in.

 

Possible to append the following:
rtr
no  ip default-gateway 10.218.30.1
ip routing

ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0 172.16.1.x ( ip address of it directly connected peer)



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