cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
292
Views
0
Helpful
2
Replies

Same existing vlan on different router

milhastugas
Level 1
Level 1

Hey all,

How can I use the same vlan 30 from the top router (router 1) in pc 1 where the near router is router2?
What is the configuration that should be on router2?

Packet tracer with the design attached.

PC0 connected to switch 1 fas 0/1
10.0.30.10
255.255.255.192
10.0.30.1

Switch 1
interface FastEthernet0/1
switchport access vlan 30


interface GigabitEthernet0/1
switchport mode trunk

Router1:
interface GigabitEthernet0/0
ip address 10.0.0.1 255.255.255.248

interface GigabitEthernet0/0.30
encapsulation dot1Q 30
ip address 10.0.30.1 255.255.255.192
ip nat inside

Ping from PC0 to router 1 -> ok

PC1
PC1 connected to switch 2 fas 0/1
10.0.30.10
255.255.255.192
10.0.30.1


Switch2
interface FastEthernet0/1
switchport access vlan 30
!
interface GigabitEthernet0/1
switchport mode trunk
!


Router 2:
interface GigabitEthernet0/0
ip address 10.0.0.3 255.255.255.248

Thank you for support.

2 Replies 2

Hi

Is not good practice configure the same gateway for the vlan 30 on different routers at the same network environment unless you are using VRF but I think packet tracer cannot handle VRF by software limitations. 

My suggestion is remove one of the sub-interface for vlan 30 and make a trunk connection between the switches in order to enable the communication between the PC's over the vlan 30

Hope it is useful

:-)




>> Marcar como Ćŗtil o contestado, si la respuesta resolviĆ³ la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Hello,

You can certainly accomplish this goal without using VRF, depending on your end goal. You could possibly use GLBP or VRRP to accomplish this method. 

The configuration would look like this:

Router 1:
interface GigabitEthernet0/0
ip address 10.0.0.3 255.255.255.248
glbp 1 ip
glbp 1 priority 105
glbp 1 load-balancing

Router 2:
interface GigabitEthernet0/0
ip address 10.0.0.2 255.255.255.248
glbp 1 ip 10.0.0.1 
glbp 1 priority 110 (100 is default)
glbp 1 preempt (switches back to this router once router comes back online)
glbp 1 load-balancing
Review Cisco Networking for a $25 gift card