Results 1 to 3 of 3

Thread: Setting up static IP connection with Ubuntu 12.04

  1. #1
    Join Date
    Nov 2012
    Beans
    3

    Angry Setting up static IP connection with Ubuntu 12.04

    Hey guys,
    I installed Ubuntu 12.04 64 bit on my laptop yesterday and bear in mind I am a COMPLETE newbie when it comes to Ubuntu or even computing in general so please keep that in mind when your posting solutions .

    Okay so we use a static IP, and after installing Ubuntu I tried to set the static IP using the network manager but the save option was greyed out. After googling for about an hour I managed to change the <inactive></inactive> bit of the following file freedesktop.org.NetworkManager.policy from no to yes. I changed all of them logged out and logged on again but, lo and behold, no change. After banging my head on the wall for about 5 minutes I tried again. This time, after another hour, I changed the /etc/Network/interfaces file to
    auto lo etho
    iface lo net loopback
    iface lo net static
    address 192.168.1.155
    netmask 255.255.255.0
    gateway 192.168.1.1

    and after restarting using this

    sudo /etc/init.d/networking restart

    and logging out and in again, I managed to connect to the Internet

    However, when I turned on my PC this morning, the Internet doesn't seem to be working. Help please

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Setting up static IP connection with Ubuntu 12.04

    I changed the /etc/Network/interfaces file to
    auto lo etho
    iface lo net loopback
    iface lo net static
    address 192.168.1.155
    netmask 255.255.255.0
    gateway 192.168.1.1
    Yikes!! Please try:
    Code:
    auto lo 
    iface lo inet loopback
    
    auto eth0
    iface eth0 inet static
    address 192.168.1.155
    netmask 255.255.255.0
    gateway 192.168.1.1
    dns-nameservers 8.8.8.8 192.168.1.1
    I assume you have some typographical errors in there. Spelling, terminology, etc. are crucial. Ubuntu won't guess what you want. It will simply not perform. Reboot and let us have your report.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Setting up static IP connection with Ubuntu 12.04

    If manually configuring in networking interfaces file you need to un-install the gui network manager as they conflict.

    Also most routers have DHCP ranges starting at 100 and either the next 50 or 100 are already allocated. You cannot use any of those addresses without conflicts. So check what ranges is used by your router.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •