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

How to ping different subnet within VLAN 1

cskua
Level 1
Level 1

Hi all,

How can I ping different subnet ip within same vlan 1? Client need to access server 1 and server 2 as well, anything to configure on layer 3 core switch or any default gateway need to include on client side?

 

Thanks

Diagram.jpg

2 Replies 2

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

For every switchport where you have a device/server attached, use this config:

 

!
int gix/x
  switchport mode access
  spanning-tree portfast
!

 

For the link between your switches config:

!
int gix/x
  switchport mode trunk
  switchport trunk allowed vlan add 1
!

There is no need to configre SVIs unless you are planning to manage the switches on the same VLAN, or need to route packets to other subnets.

 

cheers,

Seb.

Julio E. Moisa
VIP Alumni
VIP Alumni

Hi,

You need to enable intervlan routing on the Core layer, using: ip routing command globally (conf t), but my suggestion is create a new VLAN for the server 2 and pass it through the trunk between both switches. A VLAN represents a 1 network = broadcast domain.

 

Now other way that could works is if your gateway is configured on the Core switch:

 

interface vlan 1

ip address 192.168.1.1 255.255.255.0               

ip address 192.168.12.1 255.255.255.0 secondary

 

It should associate both networks into the VLAN 1 and you should be able to ping between them.

 

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. <<