Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I am new to linux. How do I change the ip address of a linux machine? I mean what are the files to change and what are the steps ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    1

    ip changes


    Hi, I am new to linux.

    How do I change the ip address of a linux machine? I mean what are the files to change and what are the steps to do..

    Thanks.

  2. #2
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    The location of the config file varies slightly between distros. What distro are you using?
    Stand up and be counted as a Linux user!

  3. #3
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    I would use ifconfig
    as root

    ifconfig eth0 <your ip> netmask <subnet mask> broadcast <the ip here>
    edit /etc/resolv.conf and add nameservers like this

    nameserver <the ip>



    ps: Without <>
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •