cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
326
Views
8
Helpful
3
Replies

Can anyone explain?

akisbouza
Level 1
Level 1

I have connected 2 cisco 2960 switches using access ports (not trunking) and i configured one management ip for each.

The first one

interface vlan1

ip address 10.10.10.1 255.255.255.0

The second one

interface vlan5

ip address 192.168.1.1 255.255.255.0

No default gateway is configured.

The 2 ports connecting the switches are configured to be in vlans 1 and 5 respectively.

The two management ips belong to different subnets and the switches are layer 2. There is no Layer 3 device between them however ping is successful from both sides.How is this possible?

Shouldnt ping be working only if management ips were in the same subnet and ports belonging in the same VLAN?

3 Replies 3

paul.matthews
Level 5
Level 5

As the link is set to access port on both, the VLAN info is moot - by using an access port link, and putting one in VLAN1 and the other in VLAN5 you have joined the VLANs. There is not tagging/encapsulation on an access link.

Put it into trunk mode, and you won't ping.

I am less certain about the subnet bit. I have a nagging memory that if you don't have a default gateway the switch will ARP for anything, so as neither have a default gateway, they will both find each other.

I debuged arp and you were right.

Thanks a lot

Thanks - always nice to get confirmation.

Paul.

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