Moxa V2616A-C8-CT-W7E [28/111] Default homepage

Moxa V2616A-C7-CT-T-W7E [28/111] Default homepage
V2616A Linux Managing Communications
3-6
fi
echo "Starting bonding service: $NAME."
modprobe bonding mode=1 miimon=100 # load bonding module
ifdown eth2 # putting down eth2
ifdown eth1 # putting down eth1
ifconfig bond0 hw ether 00:90:E8:00:00:60 # change mac address
ifconfig bond0 $2 netmask 255.255.255.0 up # set ip address
ifenslave bond0 eth2 # set eth2 in slave for bond0
ifenslave bond0 eth1 # set eth1 in slave for bond0
;;
stop)
echo "Stopping bonding service: $NAME"
ifenslave -d bond0 eth2 # release eth2 from bond0
ifenslave -d bond0 eth1 # release eth1 from bond0
ifconfig bond0 down # putting down bond0
modprobe -r bonding # unload bonding module
ifup eth2
ifup eth1
;;
restart)
$0 stop
$0 start $2
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|restart} [ip address]"
exit 1
;;
esac
exit 0
You can add this to run level by insserv.
moxa@MOXA:~# sudo insserv -v -d bonding.sh
To remove it from run level, use the following command.
moxa@MOXA:~# sudo insserv -r bonding.sh
Apache Web Server
Default Homepage
The Apache web servers main configuration file is /etc/apache2/sites-enabled/000-default, with the
default homepage located at /var/www/apache2-default/index.html.
Save your own homepage to the following directory:

Содержание

Похожие устройства

Скачать