Results 1 to 9 of 9

Thread: Static ip creation problems

  1. #1
    Join Date
    Apr 2013
    Beans
    13

    Static ip creation problems

    I have been trying to assign my computer static IP address, as I want to perform network traffic monitoring.

    I have used the the standard "sudo nano /etc/network/interfaces"

    assigned my

    auto eth0
    iface eth0 inet static
    Address
    Netmask
    Broadcast
    Dns-nameserver

    Reset the connection, didnt connect. What am I doing wrong?

  2. #2
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Static ip creation problems

    What version? what flavor? how did you reset the connection?

    Current Desktop versions of Ubuntu use network-manager, you should really use the nm-applet GUI to edit the connection and set the static IP there (it's in the IPv4 settings - change the drop down from DHCP to Manual and enter the IP details)

    Anything you specify in /etc/network/interfaces won't take effect until you restart the older networking service (or reboot) - it's OK to do that if you really want to, however if network-manager is still installed / running it can make things unnecessarily complicated imho

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

    Re: Static ip creation problems

    You should be able to assign a static address via Network Manager.

    Oops - out-typed!
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  4. #4
    Join Date
    Apr 2013
    Beans
    13

    Re: Static ip creation problems

    I am running Ubuntu 12.10 desktop, I reset the connection using "Sudo ifconfig eth0 down, Sudo ifconfig eth0 up" I dont know about network manager, from what you have described I can do that in network settings. Is this what you are on about?

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

    Re: Static ip creation problems

    The one I use is in the top bar towards the right side. It is an up/down arrow icon in 12.04.
    Network Connections looks like the same tool...
    Last edited by Iowan; April 14th, 2013 at 06:58 PM.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  6. #6
    Join Date
    Apr 2013
    Beans
    13

    Re: Static ip creation problems

    That's it brilliant, should it update the /etc/network/interfaces ​file after I have done this?

  7. #7
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Static ip creation problems

    you will need to go back and manually revert any changes you made to /etc/network/interfaces (i.e. so it contains only the lo / loopback definition)

  8. #8
    Join Date
    Apr 2013
    Beans
    13

    Re: Static ip creation problems

    thank you very much

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

    Re: Static ip creation problems

    Network Manager keeps it's own settings (I don't remember where). It shouldn't modify /etc/network/interfaces
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

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
  •