You are here
Proposed Boot Changes
#
#In the Asterisk server
- # Disable unneeded applications
- cd /etc/rc3.d/
- mv S20bittorrent K20bittorrent # Downloading app
- mv S20cupsys K20cupsys # Printing
- mv S21gdm K21gdm # Gui
- rm S23ntp-server # Bad Link as there is no ntp-server installed
- # Correct DNS issues
- vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).# The loopback network interface
auto lo
iface lo inet loopback# The primary network interface
#auto eth0
#iface eth0 inet static
# address [Your-IP-Here]
# netmask 255.255.0.0
# gateway [Your-GW-Here]
# dns-nameservers [DNS-IP-Here] [DNS-IP-Here2]#allow-hotplug eth1
auto eth1
iface eth1 inet static
address [Your-IP-Here]
netmask 255.255.255.240
gateway [Your-GW-Here]
dns-nameservers [DNS-IP-Here] [DNS-IP-Here2] - # Change system runlevel
This will make the system boot into runlevel 3, where we have stopped the unneeded applications. - vi /etc/inittab
- replace:
id:2:initdefault:
with
id:3:initdefault: - chmod +x /etc/init.d/set-eth1-1000Mbps
- update-rc.d set-eth1-1000Mbps start defaults
- reboot
- # test
# Force eth1 to 1000 Mbps with NO negotiation
apt-get install ethtool
vi /etc/init.d/set-eth1-1000Mbps
#!/bin/sh
### BEGIN INIT INFO
# Provides: /etc/init.d/10Mbps
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
# Define LSB log_* functions.
. /lib/lsb/init-functions
# Make it auto-negotiate, but only advertise 1000 full
# ethtool -s eth0 speed 1000 duplex full autoneg on
ETHTOOL="/usr/sbin/ethtool"
DEV="eth1"
SPEED="speed 1000 duplex full"
OPTIONS="autoneg on"
case "$1" in
start)
echo -n "Setting $DEV $SPEED $OPTIONS.";
$ETHTOOL -s $DEV $SPEED $OPTIONS;
echo " done.";;
stop)
;;
esac
exit 0
/etc/init.d/set-eth1-1000Mbps start
REFERENCES:
See post # 7 and 8
http://www.cyberciti.biz/faq/linux-change-the-speed-and-duplex-settings-...
http://www.wantlinux.net/2008/06/set-speed-and-duplex-on-ubuntu-and-debian/
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch03_:_L...
http://www.linuxscrew.com/2008/11/20/faq-how-to-change-duplex-andor-auto...
- shanondink's blog
- Log in or register to post comments