Results 1 to 6 of 6

Thread: Configure static IP?

  1. #1
    Join Date
    Dec 2012
    Beans
    10

    Question Configure static IP?

    Hello,

    I want to give my wireless card a static IP for a while, but can't see how I do this as I am new to this, any ideas on how to set this?

    Thanks

  2. #2
    Join Date
    Jul 2005
    Beans
    2,050

    Re: Configure static IP?

    Click on the Network Manager Notifier Icon (the one that shows wireless networks, etc.)

    Click "Edit Connections."

    Click on the Wireless tab.

    Click on the Wireless connection you are interested in.

    Click Edit.

    IPv4 Settings

    Change the "Method" from "Automatic (DHCP)" to "Manual."

    Click "Add" to add the static IP, etc.

  3. #3
    Join Date
    Dec 2012
    Beans
    10

    Re: Configure static IP?

    Hi,

    I tried that but 'ifconfig' shows the DHCP IP still, even after a reboot.

  4. #4
    Join Date
    Apr 2012
    Beans
    6,043

    Re: Configure static IP?

    What version of Ubuntu are you running?

    Do you have anything other than the loopback (lo) interface defined in your /etc/network/interfaces file?

  5. #5
    Join Date
    Jan 2013
    Beans
    18

    Re: Configure static IP?

    put something like this in /etc/network/interfaces

    Code:
    auto eth0
    iface eth0 inet static
    address 192.168.1.50
    netmask 255.255.255.0
    gateway 192.168.1.1
    dns-nameservers 8.8.8.8 8.8.4.4
    then restart the computer, and the interface will have a static IP (granted, if you're using a wireless card or your wired network card isn't eth0, you'll have to change that to suit your setup)

  6. #6
    Join Date
    Jul 2005
    Beans
    2,050

    Re: Configure static IP?

    If you use Network Manager (like most people do) for network connections in Ubuntu, the /etc/network/interfaces file may be ignored completely. Either use Network Manager to do it or uninstall Network Manager completely and do all of your networking manually via the terminal.

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
  •