cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1147
Views
0
Helpful
12
Replies

Getting two Managed switches to communicate

rschmirler
Level 1
Level 1

Hello, 

I have two IE3100 managed switches that I am trying to get to communicate. Switch #1 has an IP address of 10.0.1.101 and switch #2 has an IP address of 10.0.1.108. They have the same subnet and gateway. Both switches were setup on Management VLAN 1. I currently have an ethernet cable connected to port 7 in switch #1 and port 3 in switch 2.

In switch 1, I have an HMI, PLC and my computer connected as well.

In switch 2, I have a second HMI connected.

My problem is the HMI connected to switch 2 cannot see the PLC connected in switch 1. I have not changed any port specific configuration from how they were set up out of the box. The only settings I changed in the express setup are the IP addresses, subnet, gateway and VLAN. I also already checked to make sure it was not a cable issue. The communication problem only exists when I try to go through switch #2. Does anyone know how to get these switches to talk properly?  

12 Replies 12

Richard Burts
Hall of Fame
Hall of Fame

Can you verify that all ports with connected devices are in vlan 1?

HTH

Rick

VLAN Setup.png

Yes, I can confirm that all ports are configured as shown in the picture attached. 

@rschmirler 

 If you put both HMI on switch 1, does it works?

Yes, all devices can communicate when they are all plugged into switch #1. It is when I plug the second HMI into switch #2 that it can no longer see the other devices on switch #1, even though switch #1 and switch #2 are connected via an ethernet cable.

How those devices communicate? Does they use IP address or the communication is using only mac address?

If you connect a PC to the second switch, can you ping from one PC to another? Or , from one switch can you ping the other?

All of the devices have IP addresses. Each device's IP address begins with 10.0.1. and they all have the same subnet and gateway. 

If I plug my PC into switch #1, I can ping switch #2. If I plug my PC into switch #2, I cannot ping switch #1 or anything that is plugged into switch #1.

Can you share the config from switch 2?  CLI would  be better

Switch #2 config.pngUnfortunately, I took this screenshot when I set everything up and I did not click on the CLI button, so I do not have that. 

That means you dont have access to the switch right now?   Are those switches close each other?

Something is not right with switch 2 apparently. It could be the ports in another vlan, for example.

 

I do have access to both switches right now. They are about 6 ft away from each other. All ports are set to VLAN 1. I just don't know how to get CLI now that the express setup is done.

Leo Laohoo
Hall of Fame
Hall of Fame

Is the link between the two IE3k a Dot1x port? 

If they are, post the complete output to the command "sh interface trunk" from both switches.

Devaa
Spotlight
Spotlight

Are you able to ping 10.0.1.101 and 10.0.1.108 from any PC / Laptop, when directly connected to switch? 

If yes, able to SSH? If not, you need to get into console to check. 

If yes, run the below cmds in both switch and share logs.

show vlan
show interfaces trunk
show ip interface brief
show mac address-table

If not, get info console to configure SSH. 

SW1(config)#hostname SW1
SW1(config)#ip domain-name example.com
SW1(config)#
SW1(config)#
SW1(config)#crypto key generate rsa
The name for the keys will be: SW1.example.com
Choose the size of the key modulus in the range of 360 to 4096 for your
  General Purpose Keys. Choosing a key modulus greater than 512 may take
  a few minutes.

How many bits in the modulus [512]: 1024
% Generating 1024 bit RSA keys, keys will be non-exportable...
[OK] (elapsed time was 0 seconds)

SW1(config)#
*Dec 28 03:49:07.816: %SSH-5-ENABLED: SSH 1.99 has been enabled
SW1(config)#
SW1(config)#username admin privilege 15 secret password
SW1(config)#
SW1(config)#
SW1(config)#line vty 0 4
SW1(config-line)#login local
SW1(config-line)#transport input ssh
SW1(config-line)#end
SW1#
SW1#wr