cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
192
Views
1
Helpful
6
Replies

Routing traffic through switch

Hello everybody,

I have a lab that I got from my manager where he want the pcs (each one is on different VLAN) the I have set the router 2 which is my main router one port i receive all VLANs traffic and the other port to route traffic i can ping these to ports but ican't ping the other main and back router ISPs is the topology wrong my manager said it should 3 router 2 for isps and one is ours locally am i missing something i have configured ip route for the ISP1 ip and back ISP ip route ISP2 ip with different AD but still I can only ping my locally interface I can't really see the problem here , Also I have configured 0/0/0.10 for vlan 10 and .20 for vlan 20 and made this port trunk from my switch so my main router can get all traffic (the main idea that my manager wants is to ping isp1 and 2 from my pc clients check the topology in the attached figure.

many thanks in advance  

1 Accepted Solution

Accepted Solutions

Dont use the interface

Router(config)#ip route 192.168.10.0 255.255.255.0 gigabitEthernet 0/0/0

Use the routers IP address

Router(config)#ip route 192.168.10.0 255.255.255.0 <R2 IP address>

Attache the file here

View solution in original post

6 Replies 6

he wants the traffic to go through the switch and the problem is I can't ping ISP1 and ISP2 from my pc which has the default gateway of VLAN 10 going to router (my main router locally) just to clarify 

 

@mohammedalrawiib 

 Router 3 and Router4 need to have route back to PC IP address.

ip route <pc ip add> <mask> <R2 interface>

 

PC need to be using the R2 as gateway on the subinterface.

You can attach your file here, just need to zip it first

I have configured 

Router(config)#ip route 192.168.10.0 255.255.255.0 gigabitEthernet 0/0/0

 but still ican't ping it says request time out 
really I don't understand the idea here why should do that when I have ping from R3 on R2? 
many thanks for your response

Dont use the interface

Router(config)#ip route 192.168.10.0 255.255.255.0 gigabitEthernet 0/0/0

Use the routers IP address

Router(config)#ip route 192.168.10.0 255.255.255.0 <R2 IP address>

Attache the file here

Many thanks for your response
could you please explain more on that lets say if this scenario is in an enterprise will i need to configure the route to route traffic back so that they can reach the internet and get back a response am still learning as I don't have that much experience in routing really so bare with me.
Also it is pingable now thanks.

Yeah, if I understood properly, you need to add routes on the router in order to reply back to the PC and if you also need access to the internet, you can use a route like this

ip route   0.0.0.0   0.0.0.0   <internet gateway>

This route means, any traffic you dont know where to send,  send it to your gateway.

Review Cisco Networking for a $25 gift card