Wake On LAN / Networking Help

Discussion in 'Installation/Configuration' started by bradhawk, Dec 11, 2007.

  1. bradhawk

    bradhawk New Member

    So, I set up my server using " The Perfect Server - Ubuntu Gusty Gibbon 7.10 ". When setting up I had a wireless PCI adapter installed as eth1.

    But to change from the unreliability of the wireless, I removed the wireless PCI adapter card. I connected my ethernet card to the router using a crossover cable. I attempted to run
    Code:
    apt-get update
    which attempts to connect to the internet but fails. It also failed when the wireless PCI adapter was installed.

    ifconfig output looks like this:
    Code:
    brad@cougforlife:~$ ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:40:2B:77:37:3E
              inet addr:192.168.1.112  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::240:2bff:fe77:373e/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:1760 errors:0 dropped:0 overruns:0 frame:0
              TX packets:199 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:162603 (158.7 KB)  TX bytes:29858 (29.1 KB)
              Interrupt:20
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:78 errors:0 dropped:0 overruns:0 frame:0
              TX packets:78 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:5784 (5.6 KB)  TX bytes:5784 (5.6 KB)
    
    /etc/network/interfaces looks like
    Code:
    brad@cougforlife:~$ cat /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 eth1
    #iface eth1 inet static
    #       address 192.168.1.112
    #       netmask 255.255.255.0
    #       network 192.168.0.0
    #       broadcast 192.168.0.255
    #       gateway 192.168.1.1
    #       # wireless-* options are implemented by the wireless-tools package
    #       wireless-mode managed
    #       wireless-essid batcave
    #       wireless-key1 3970E70E88507C83D51D098F4A
    #       # dns-* options are implemented by the resolvconf package, if installed
    #       dns-nameservers 24.94.163.100
    
    # The primary network interface
    auto eth0
    iface eth0 inet static
            address 192.168.1.112
            netmask 255.255.255.0
            network 192.168.0.0
            broadcast 192.168.0.255
            gateway 192.168.1.1
            # dns-* options are implemented by the resolvconf package, if installed
            dns-nameservers 24.94.163.100
            up ethtool -s eth0 wol g
    
    Anybody having a solution to get the internet working?

    My next question is how do I set up my server to automatically start if it loses power because of a power outage. The only way I've found to do this is using WAKE ON LAN. I followed this page:

    http://n01getsout.com/blog/2006/11/16/wake-on-lan-on-linux-with-a-linksys-wrt54g/

    I attempted to wake my computer up using the web based utility. It didn't work. I do have my router forwarding port 9 via UDP to 192.168.1.112 which should work.

    Anyone know a better solution to this problem or how to set up WOL?

    Thanks!
     
  2. o.meyer

    o.meyer ISPConfig Developer ISPConfig Developer

    Hi,

    please try the following:

    Disable the network in all runlevels and enable the Network Manager & Network Manager Dispatcher. After that reboot your system - you should now be able to use your WLAN-card as described here at step 11.

    If you want to use WOL you should have a look into your BIOS-settings - you have to enable it there.

    Best regards,

    Olli
     
    Last edited: Dec 11, 2007
  3. bradhawk

    bradhawk New Member

    what do you mean by
    are you referring to running this command:
    Code:
    /etc/init.d/networking stop
    ??

    How do I do this?

    Finally, how do I look in my BIOS / enable it in my BIOS?

    Thanks for all your help.
     
  4. o.meyer

    o.meyer ISPConfig Developer ISPConfig Developer

    Forget what I mentioned in my first reply - I didn't read "server" :)
    I think I found your problem.

    Please change

    network 192.168.0.0
    broadcast 192.168.0.255

    to

    network 192.168.1.0
    broadcast 192.168.1.255

    in your network configuration. After that you should be able to connect to the internet.

    Best regards,

    Olli
     
  5. bradhawk

    bradhawk New Member

    That didn't fix it.

    In my researching yesterday I stumbled upon people talking about editing the /etc/resolv.conf file.

    I have listed my nameservers in the /etc/network/interfaces but I don't think it actually reads it from there so I also put it in my /etc/resolv.conf file. It has the domain listed as mshome.net which I don't believe is correct. How would I find out what to change it to?

    My /etc/resolv.conf file looks like this
    Code:
    search mshome.net
    nameserver 24.94.163.100
    
     
    Last edited: Dec 12, 2007
  6. o.meyer

    o.meyer ISPConfig Developer ISPConfig Developer

    To find out the domain, that you have configured enter:

    hostname -f

    your domain is the part from the first point till the end.
    You can use your router (gateway) as nameserver. Please try the following configuration (replace %your_domain% with your domain).

    /etc/resolv.conf
    -----------------------------------
    search %your_domain%
    nameserver 192.168.1.1
    -----------------------------------

    /etc/network/interfaces
    -----------------------------------
    auto lo
    iface lo inet loopback

    auto eth0
    iface eth0 inet static
    address 192.168.1.112
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
    -----------------------------------

    Afterwards you have to restart the network.

    /etc/init.d/networking restart


    Best regards,

    Olli
     
    Last edited: Dec 13, 2007
  7. bradhawk

    bradhawk New Member

    It works!! Hooray!!

    It must have been the nameserver but that nameserver address I had in there is the same that is reported when I type ipconfig on my windows machine. But whatever if it works it works!!
     
  8. o.meyer

    o.meyer ISPConfig Developer ISPConfig Developer

    About WOL.

    When you started or restarted your system (before the system is booting the OS) you have to hit "DEL" or "F2" (depending on your BIOS manufacturer) to get into your BIOS settings.

    Search an option called "Wake on LAN" and switch it on - afterwards save the configuration and exit the BIOS settings (save&exit). Have also a look for a setting to "restore ac after power loss" - this will start the system automatically after a blackout.

    Best regards,

    Olli
     
    Last edited: Dec 13, 2007

Share This Page