Find the answer to your Linux question:
Results 1 to 3 of 3

Thread: ip changes

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #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..


  2. #2
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Riverton, UT, USA
    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
    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

Posting Permissions

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