
IXS600 Users Guide
–
Dolphin Interconnect Solutions
Page 21
Network configuration without the web interface
You may configure the network settings without the web interface by utilizing a USB memory stick, and a small shell script.
We recommend using a high quality and stable USB drive for this procedure. Cheaper USB drives typically used for
marketing purposes tend to be unstable. Store one of the scripts below as a text file named
tsusb
on the USB flash drive. It
is important that you use Unix-style line endings for the script or it will not run successfully. The use the following
procedure to perform the configuration:
1.
Power-cycle the switch
2.
Wait for the Power LED to become stable green for at least 5 seconds
3.
Insert the USB stick in one of the USB-A slots. Power LED should start blinking.
4.
Wait ~35 seconds for the procedure to complete.
5.
Power LED should have been stable green for at least 5 seconds
6.
Eject the USB and power-cycle the switch
7.
Review the new files present on the USB stick
tsusb script toggling DCHP on/off
#!/bin/sh
echo "This script toggles DHCP on the IXS600 switch"
echo "---------------------------------------------"
if [ ! -e /opt/DIS/sbin/ixsctl ]; then
echo "ERROR: ixsctl is not present on this device."
exit 1
fi
killall ixsctl
dhcp=$(/opt/DIS/sbin/ixsctl config CONF_NET_DHCP | sed 's/[^0-9]//g')
if [ $dhcp -eq 1 ]; then
echo "DHCP is on, turning it off"
dhcp=0
else
echo "DHCP is off, turning it on"
dhcp=1
fi
/opt/DIS/sbin/ixsctl config CONF_NET_DHCP $dhcp
echo "Done, let's sleep for some time to allow DHCP to re-configure"
sleep 3
echo "New IP configuration is:"
ifconfig
cat /etc/resolv.conf
/opt/DIS/sbin/ixsctl info