automate telnet over VLANs with same IP address
I am going to have a 24 port switch with each port being a separate VLAN.
There will be a device connected to each port which has the same IP
address.
There will be a server connecting to the trunk port of the switch with 24
VLAN interfaces configured also all being the same IP address.
With ping I can simply do 'ping -I eth0.1 192.168.1.1' for example and
direct the traffic out the exact VLAN that I want.
I am needing now to automate telnet sessions to these devices
simultaneously and can't seem to find any solution with the expect program
or otherwise. They all seem to rely on source IP address and not source
interface.
Any thoughts on how I might be able to accomplish this would be appreciated.
No comments:
Post a Comment