Thread: IP address configuration Files?

  1. #1
    POeT GuY Matus's Avatar
    Join Date
    Feb 2008
    Location
    Bz
    Posts
    235

    Question IP address configuration Files?

    When instlling ubuntu server it asks you if you want to set up ip address, domain, gateway etc right during the process. Now there was a change with the IP address, so what i wanted to do was go into those files containing the IP address,gateway etc.. to change it. Can anyone help me out by pointing out in what directory these files are stores.

    /etc/ ..... I remember someone doing it a while back, and they modified two files that had the IP address.
    PoEms R InsPiRatiOns of LIfE ExpErienCes!!


  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    /etc/hosts may contain your own machines IP address (it may contain other machines IP addresses too).

    The other is likely to be /etc/network/interfaces.

    Here's a link too:
    http://www.ubuntugeek.com/change-ubu...p-address.html

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    POeT GuY Matus's Avatar
    Join Date
    Feb 2008
    Location
    Bz
    Posts
    235
    Quote Originally Posted by matsp View Post
    /etc/hosts may contain your own machines IP address (it may contain other machines IP addresses too).

    The other is likely to be /etc/network/interfaces.

    Here's a link too:
    http://www.ubuntugeek.com/change-ubu...p-address.html

    --
    Mats

    Thanks ill check that out in a bit after lunch , thanks
    PoEms R InsPiRatiOns of LIfE ExpErienCes!!


  4. #4
    POeT GuY Matus's Avatar
    Join Date
    Feb 2008
    Location
    Bz
    Posts
    235
    Quote Originally Posted by matsp View Post
    Mats

    Yup that was it Mats, thanks again! Got it working
    PoEms R InsPiRatiOns of LIfE ExpErienCes!!


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux raw socket programming
    By cnb in forum Networking/Device Communication
    Replies: 17
    Last Post: 11-08-2010, 08:56 AM
  2. Converting 32 bit binary IP to decimal IP (vice-versa)
    By Mankthetank19 in forum C Programming
    Replies: 15
    Last Post: 12-28-2009, 07:17 PM
  3. IP address discovery
    By abinash in forum Networking/Device Communication
    Replies: 6
    Last Post: 04-29-2007, 02:49 PM
  4. Obtain local machine IP address
    By magic.mike in forum Windows Programming
    Replies: 4
    Last Post: 03-18-2005, 10:40 AM
  5. finding out ip address?
    By chiatello in forum Linux Programming
    Replies: 3
    Last Post: 08-07-2003, 06:18 AM