IXS600 Users Guide
–
Dolphin Interconnect Solutions
Page 22
tsusb script setting static configuration
#!/bin/sh
echo "Sets a static network configuration on the IXS600 switch"
echo "--------------------------------------------------------"
# Adjust these values accordingly to your network setup
ADDR=192.168.0.50
MASK=255.255.255.0
GATEWAY=192.168.0.1
DNS_SERVER=192.168.0.1
DNS_DOMAIN=localdomain
if [ ! -e /opt/DIS/sbin/ixsctl ]; then
echo "ERROR: ixsctl is not present on this device."
exit 1
fi
killall ixsctl
echo "Disabling DHCP"
/opt/DIS/sbin/ixsctl config CONF_NET_DHCP 0
echo "Setting the static configuration"
/opt/DIS/sbin/ixsctl config CONF_NET_ADDR $ADDR
/opt/DIS/sbin/ixsctl config CONF_NET_MASK $MASK
/opt/DIS/sbin/ixsctl config CONF_NET_GW $GATEWAY
/opt/DIS/sbin/ixsctl config CONF_NET_DNS_SERVER $DNS_SERVER
/opt/DIS/sbin/ixsctl config CONF_NET_DNS_DOMAIN $DNS_DOMAIN
echo "Done, let's sleep to re-configure the network"
sleep 3
echo "New IP configuration is:"
ifconfig
cat /etc/resolv.conf
/opt/DIS/sbin/ixsctl info
sync