You are here

Proposed Boot Changes

#
#In the Asterisk server

  1. # Disable unneeded applications
  2. cd /etc/rc3.d/
  3. mv S20bittorrent K20bittorrent # Downloading app
  4. mv S20cupsys K20cupsys # Printing
  5. mv S21gdm K21gdm # Gui
  6. rm S23ntp-server # Bad Link as there is no ntp-server installed

  7. # Correct DNS issues
  8. 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]



  9. # Change system runlevel
    This will make the system boot into runlevel 3, where we have stopped the unneeded applications.
  10. vi /etc/inittab
  11. replace:

    id:2:initdefault:

    with

    id:3:initdefault:

  12. # Force eth1 to 1000 Mbps with NO negotiation

  13. 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

  14. chmod +x /etc/init.d/set-eth1-1000Mbps
  15. update-rc.d set-eth1-1000Mbps start defaults
  16. /etc/init.d/set-eth1-1000Mbps start

  17. reboot
  18. # test

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...