Comware Based
Showing results for 
Search instead for 
Did you mean: 

VLAN Communication in same switch (2920)


VLAN Communication in same switch (2920)

Hi everyone,

I'm new on switching i've the basic knowledge on VLAN's. i'm tested my configuration but i think that is wrong because if i do a ping from PC1 to PC2 i've response. I don't want communication between that host


VLAN 1 - IP (port 1-10 untagged)

VLAN 2 - IP (port 11-20 untagged)


PC1 in VLAN 1 - IP gateway

PC2 in VLAN 2 - IP gateway


The routing is enable and i have a route static for internet


What can i do?





Trusted Contributor

Re: VLAN Communication in same switch (2920)

Any L3-switch who has "ip routing" enabled will automatically route between vlans for which it has an ip address configured for (aka SVI).

So in your case, remove the ip for one (or both) of your vlans and your L3-switch wont route between the vlans (even if you have ip routing enabled).

Also note that you shouldnt use vlan 1 for anything.
Honored Contributor

Re: VLAN Communication in same switch (2920)

So there are a number of ways to have your two subnets but not route between them:


1/ With the config you have right now, add in an access list on at least one of the VLAN interfaces which denies traffic from one subnet to the other.

HOWEVER, this will break your second subnet's access to the internet, because you've put the internet on VLAN1.


2/ Keep the existing config, configure the access list(s), but change the internet router address to be in a 3rd entirely separate subnet.


3/ Remove both IP addresses from the switch. Create a new subinterface on the router and put on it. Configure at least one access list separating the two subnets.