Results 1 to 4 of 4

Thread: Setting Static IP in Ubuntu?

  1. #1
    Join Date
    May 2007
    Location
    Ireland
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Setting Static IP in Ubuntu?

    Hey guys,

    I've been trying for hours to set a static IP in Intrepid to no avail. I'm just after switching to Wicd as I heard it was better at handling connections than the default network manager.

    I'm hard wired to a wireless router, and ports are open, but if I set the static IP in wicd, its still blocked according to the uTorrent Port Checker (best browser based one in my opinion).

    Please Help.

    Thanks,

    Chris
    Native Linux Gamer
    Penumbra | Quake IV | Doom 3 | Quake Wars | Regnum Online | Savage 2 | Warsow | Prey
    Ubuntu Game Night

  2. #2
    Join Date
    May 2007
    Location
    Ireland
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Setting Static IP in Ubuntu?

    Anyone?
    Native Linux Gamer
    Penumbra | Quake IV | Doom 3 | Quake Wars | Regnum Online | Savage 2 | Warsow | Prey
    Ubuntu Game Night

  3. #3
    Join Date
    May 2007
    Location
    Ireland
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Setting Static IP in Ubuntu?

    Please, this is urgent!
    Native Linux Gamer
    Penumbra | Quake IV | Doom 3 | Quake Wars | Regnum Online | Savage 2 | Warsow | Prey
    Ubuntu Game Night

  4. #4
    Join Date
    Oct 2008
    Location
    Savannah, GA
    Beans
    8
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Setting Static IP in Ubuntu?

    Well you should suppress NetworkManager, then run these.


    sudo ip route flush all
    sudo ifconfig eth0 <ip> netmask <mask>
    then

    sudo route add default gw <gateway_ip> dev eth0
    Then modify /etc/resolv.conf for DNS. Add the following and save

    sudo vi /etc/resolv.conf
    add these lines

    nameserver <ns1>
    nameserver <ns2>
    Ping your gateway ip. If that works then do an nslookup on some domain. I think google will actually let you ping them. If that works you're up and running.

    Again, you'll want to suppress NetworkManager or else the roaming mode stuff is going to come back.

    I think you can actually do the above through the NetworkManager/GUI, but I never really figured that reliably out. I just knew how to do this from headless installs so I always went with that.

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
  •