cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
606
Views
0
Helpful
4
Replies

Routing VLANs between two routers

Ninja17
Level 1
Level 1

Untitled.png

I am configuring the Inter VLANS through the two Routers. I have tried RIP & EIGRP but its not working. I have also tried ip route 198.168.10.0 255.255.255.0 198.168.70.0.

 

Please suggest.

4 Replies 4

luis_cordova
VIP Alumni
VIP Alumni

Hi @Ninja1,

 

Please, show the configuration of both router.

 

Regards

Martin Carr
Level 4
Level 4

More information is required here, so will give an overview and also comment based on my observations.

 

There is an (most likely a typo) error 'Sr.Lawyers' and 'Jr.Lawyers' both use the same VID (which isn't possible) and the subnets overlap.

 

They need to have independent VLAN's/subnets.

 

The topology you have is ROAS (router on a stick) a trunk connection should be created between the switch and router, the router has a sub-interface per VLAN, however neither router knows nothing of the others connected networks. 

 

My advice to you would be to learn routing first, without this it's impossible to implement/troubleshoot more complex routing.

 

 

Here I have written you a configuration for two LAN's to communicate:

 

AdminRouter2

 

conf t

int fa0/0 (substitute this for the relevant interface)

description ****xxxx****

ip address 10.1.1.6 255.255.255.252

int fa0/0.70

encapsulation dot1q 70

description **** Sr.Lawyers VLAN ****

ip address 192.168.70.254 255.255.255.0

no shut

 

ip route 192.168.10.0 255.255.255.0 10.1.1.5

 

AdminRouter 1

conf t

int fa0/0 (substitute this for the relevant interface)

description **** xxxx****

ip address 10.1.1.5 255.255.255.252

int fa0/0.10

encapsulation dot1q 10

description **** Trainee VLAN ****

ip address 192.168.10.254 255.255.255.0

no shut

ip route 192.168.70.254 255.255.255.0 10.1.1.6

 

You then need to configure both the switch interfaces as trunks and the clients DG's.

 

Martin

 

Thanks Martin.

But Unfortunately I have already configured the router and switch.
I am able to ping within that router network. The problem arises when I am trying to ping across the network.

Anyways I will try with ur IP address. Might be the Gateway problem

As explained, it's not configured correctly.

For a start that route is incorrect, as the next hop should be an interface address on the other router. You would also require a route back for that network on the other router.

The fact you can ping between LAN's means you have ROAS configured correctly and there is nothing wrong with the clients configuration.

 

As such you need to configure the transit (point to point) connection and the routing, also fix the Lawyer VLAN's.

Martin

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card