cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

324
Views
10
Helpful
3
Replies
Highlighted
Beginner

Pinging a Device Outside of VLAN

Hi,

I've got a number of PCs in 4 different VLANs. Currently there is no inter-vlan routing so only devices within the same VLAN can ping each other. I've now added a server and a printer that lie outside all of these VLANs, but would like all PCs to be able to ping them. Is it possible to ping these without allowing PCs in different VLANs to ping each other. I've seen some suggestions saying to set switchport mode to trunking instead of access but I'm not sure how this would affect what I already have configured.

Thank you in advance for any help! 

 

I've included a section of the topology here if that helps give an overview of what I'm trying to achieve.

help.jpg

 

Example switch configuration:

 

interface Port-channel3

switchport mode trunk

!

interface FastEthernet0/1

switchport mode trunk

channel-group 3 mode active

!

interface FastEthernet0/2

switchport mode trunk

channel-group 3 mode active

!

interface FastEthernet0/10

switchport access vlan 40

switchport mode access

!

interface FastEthernet0/11

switchport access vlan 30

switchport mode access

!

interface Vlan1

no ip address

shutdown

!

interface Vlan10

mac-address 0004.9a4b.b401

ip address 192.168.10.1 255.255.255.0

!

interface Vlan20

mac-address 0004.9a4b.b402

ip address 192.168.20.1 255.255.255.0

!

interface Vlan30

mac-address 0004.9a4b.b403

ip address 192.168.30.1 255.255.255.0

!

interface Vlan40

mac-address 0004.9a4b.b404

ip address 192.168.40.1 255.255.255.0

!

Everyone's tags (4)
3 REPLIES 3
VIP Advisor

Re: Pinging a Device Outside of VLAN

Hi @Stuart D ,

 

To get devices from different vlan to communicate, you must activate the routing between vlan.

After this, you can create an acl to filter the traffic between vlan.

 

Regards

VIP Mentor

Re: Pinging a Device Outside of VLAN

Hello


@Stuart D wrote:

Hi,

I've got a number of PCs in 4 different VLANs. Currently there is no inter-vlan routing so only devices within the same VLAN can ping each other. I've now added a server and a printer that lie outside all of these VLANs, but would like all PCs to be able to ping them. Is it possible to ping these without allowing PCs in different VLANs to ping each other. 


In short as @luis_cordova stated inter vlan communication requires routing 

 

The only other alternative i can personally think of is to have one large broadcast domain and apply some port security  between the hosts 

 

 



kind regards
Paul

Please rate and mark posts accordingly if you have found any of the information provided useful.
It will hopefully assist others with similar issues in the future

Re: Pinging a Device Outside of VLAN

Hello dear ,
Apply # ip route
So all SVI’s will see us
CreatePlease to create content
Content for Community-Ad