Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Keep losing Internet after setting up static ip.

  1. #11
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Keep losing Internet after setting up static ip.

    Do you have a graphical desktop environment installed on this server? If so, there may be a conflict between NetworkManager and the older ifup framework. This issue has nabbed me in the past.

    There are a couple of ways to fix it:

    Clean up /etc/network/interfaces:

    tgalati4@Mint14-Extensa ~ $ cat /etc/network/interfaces
    # interfaces(5) file used by ifup(8) and ifdown(8)
    auto lo
    iface lo inet loopback

    # Lines below are causing issues with NetworkManager
    #
    # iface wlan0 inet static
    # address 192.168.1.156
    # netmask 255.255.255.0
    # gateway 192.168.1.1
    # wireless-essid "Galati Slow Lane"
    # auto wlan0
    # iface wlan0 inet dhcp

    # iface eth0 inet static
    # address 192.168.1.156
    # netmask 255.255.255.0
    # Don't need a second gateway statement--it can cause issues.
    #

    # auto eth0
    # iface eth0 inet dhcp
    Then set up your static assignments using the graphical NetworkManager icon: (nm-applet).

    There is also a setting in the nm configuration file to allow nm to obey the /etc/network/interfaces file:

    tgalati4@Mint14-Extensa ~ $ cat /etc/NetworkManager/NetworkManager.conf
    [main]
    plugins=ifupdown,keyfile
    dns=dnsmasq

    no-auto-default=00:XX3:XX:EF:1E,00:00:XX:3C:76:XX,

    [ifupdown]
    managed=false
    So between these two scenarios, there is a room for error and being locked out of your network.
    Last edited by tgalati4; September 18th, 2014 at 10:23 PM.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  2. #12
    Join Date
    Oct 2005
    Location
    Wabasha MN
    Beans
    2,571
    Distro
    Ubuntu

    Re: Keep losing Internet after setting up static ip.

    I don't have a graphical desktop environment installed on this server so I don't think that is the problem.
    Information on my Main laptop. Information on my small laptop Dell 11 3000
    Using a Asus 3632QM laptop with 8gig RAM, 250 SSD.
    Machine Registered 366271, 366273, 366275.
    Registered Ubuntu user number 18630. Registered Linux user number 458093.

  3. #13
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    2,269
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Keep losing Internet after setting up static ip.

    You may want to remove your /etc/udev/rules.d/70-persistent-net.rules. Copy it first on another location and then remove/delete the file. I have encountered before that it keeps messing up my network interface when the server changed from dhcp to static IP address. Be sure to activate your static IP in the /etc/network/interfaces and the reboot and see the changes.

  4. #14
    Join Date
    Oct 2005
    Location
    Wabasha MN
    Beans
    2,571
    Distro
    Ubuntu

    Re: Keep losing Internet after setting up static ip.

    That file does not exist so I can't move it.
    cannot access /etc/udev/rules.d/70-persistent-net.rules: No such file or directory
    Information on my Main laptop. Information on my small laptop Dell 11 3000
    Using a Asus 3632QM laptop with 8gig RAM, 250 SSD.
    Machine Registered 366271, 366273, 366275.
    Registered Ubuntu user number 18630. Registered Linux user number 458093.

  5. #15
    Join Date
    Apr 2014
    Location
    Tucson AZ, USA
    Beans
    1,050
    Distro
    Ubuntu

    Re: Keep losing Internet after setting up static ip.

    Add this line to your p3p1 static ip section.

    Code:
    dns-nameservers 8.8.8.8 8.8.4.4
    These are googles dns servers. change them for whatever you prefer to use.

  6. #16
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: Keep losing Internet after setting up static ip.

    Quote Originally Posted by irv View Post
    This is done in my router from my isp.
    Attachment 256517

    I also have a ip address assigned to my router for my domain name "wabasha-server.net" Here is the assignment
    What I'm seeing in the screenshot is what your router needs to access the internet. I'm not familiar with configuring a Linksys device, but setting a static IP on my personal router (a different brand) for one of my devices (phone, laptop, etc) is via its equivalent of what I'm assuming the applications and gaming menu does on yours.
    Last edited by lisati; September 20th, 2014 at 06:03 AM. Reason: rephrase
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  7. #17
    Join Date
    Oct 2005
    Location
    Wabasha MN
    Beans
    2,571
    Distro
    Ubuntu

    Re: Keep losing Internet after setting up static ip.

    This morning I tried changing my interfaces file again and here is what the file looks like:

    # 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 p3p1

    iface p2p1 inet static
    address 192.168.1.105
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
    dns-nameservers 8.8.8.8 8.8.4.4
    When my interaces file is setup like this it will not not get to the internet or even my network now. I can't remote to my server using the static ip address 192.168.1.105 or my domain name wabasha-server.net but if I change back to:

    # 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 p3p1
    iface p3p1 inet dhcp
    Everything works fine.

    Now my router's local setting are:

    MAC Address: 00:18:39C:1B:99
    IP Address: 192.168.1.1
    Subnet Mask: 255.255.255.0
    DHCP Server: Enable
    Start IP Address: 192.168.1.100
    End IP Address: 192.168.1.149
    Which means it is sending out ip address' beween 192.168.1.100 and .149.
    My DHCP Active IP table is showing that wabasha-server which is my server has a ip address of 192.168.1.105 and will expire 23:42:56 so it will change.
    By adding the line dns-nameservers really does nothing because it is dealing with dns names not internal ip address across a dhcp.
    Now my big question is: when I setup my server did it setup a dhcp server and is it running in conflict with my dhcp on my router? I wouldn't think so. My old server 12.04 worked just fine with static setting.

    Just for the record my Linksys router gaming menu is no more then port setting. It is opening ports for ftp,, httml etc. It has nothing to do with dhcp. I use it to open port for my server so I can get to the Internet.

    In closing here is what my output from ifconfig command looks like:

    Code:
    irv@wabasha-server:~$ ifconfig
    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:65536  Metric:1
              RX packets:40 errors:0 dropped:0 overruns:0 frame:0
              TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:3617 (3.6 KB)  TX bytes:3617 (3.6 KB)
    
    p3p1      Link encap:Ethernet  HWaddr 00:30:18:ad:bc:1e  
              inet addr:192.168.1.105  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::230:18ff:fead:bc1e/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:1725 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1752 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:147818 (147.8 KB)  TX bytes:2198538 (2.1 MB)
    Information on my Main laptop. Information on my small laptop Dell 11 3000
    Using a Asus 3632QM laptop with 8gig RAM, 250 SSD.
    Machine Registered 366271, 366273, 366275.
    Registered Ubuntu user number 18630. Registered Linux user number 458093.

  8. #18
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Keep losing Internet after setting up static ip.

    # 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 p3p1

    iface p2p1 inet static
    address 192.168.1.105
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
    dns-nameservers 8.8.8.8 8.8.4.4
    I presume that was a typo...
    By the way, are you trying to set up a static address inside the DHCP server's range?
    Last edited by Iowan; September 20th, 2014 at 02:33 PM.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  9. #19
    Join Date
    Oct 2005
    Location
    Wabasha MN
    Beans
    2,571
    Distro
    Ubuntu

    Re: Keep losing Internet after setting up static ip.

    lowan, you have a good eye. that was the problem al it was was a typo. At least I was in the static address range. Thank you for catching this because it fix the problem. The problem was it couldn't find the network card p3p1. I don't have a p2p1. I will mark solved. Wow, my server setup is now complete and this is the first time I did it completely from the command prompt. No GUI on my server. I may have to setup a few more server, I am starting to like this.
    Information on my Main laptop. Information on my small laptop Dell 11 3000
    Using a Asus 3632QM laptop with 8gig RAM, 250 SSD.
    Machine Registered 366271, 366273, 366275.
    Registered Ubuntu user number 18630. Registered Linux user number 458093.

  10. #20
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Keep losing Internet after setting up static ip.

    A static address in the DHCP server's range may lead to conflicts - the DHCP server is free to assign 192.168.1.105 to another machine.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

Page 2 of 3 FirstFirst 123 LastLast

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
  •