sponsored ads

How to Change IP or MAC Address in Linux

I want to change or config my IP address to connect Internet in Linux operating system,but I don't know how to make it, can you tell me how to Change IP or MAC Address in Linux?

sponsored ads

Solution

Change IP Address:

  1. Enter "Terminal":
    Here we use Ubuntu 9.04
    Click Applications >Terminal
    Enter terminal to set IP in Linux
  2. Type: "sudo ifconfig eth0 xxx.xxx.xxx.xxx" to set your IP Address:
    Here we use 1.2.3.4 to show the effect, please note, you need the password of the administrator.
    Set your IP in Linux
  3. Type "ifconfig" and press Enter, you will see the IP has been changed:The changed IP in Linux

Change Mac Address:

  1. Launch Terminal and type in "ifconfig" to get your current Mac address:
     Get current Mac address in Linux
  2. Type in: "sudo ifconfig eth0 down" , and press Enter to temporary disable network:
    Stop network to change Mac Address in Linux 
  3. Type in "sudo ifconfig eth0 hw ether xx:xx:x:xx:xx:xx" to set the Mac address you want, for example here we use "00:01:23:fe:c6:34" , so we type in: "sudo ifconfig eth0 hw ether 00:01:23:fe:c6:34" :
    Use commands to change Mac address in Linux
  4. Then, type in "sudo ifconfig eth0 up" to restart your network:
    Restart network to apply Mac address change in Linux
  5. Type in "ifconfig" again, to show your current Mac address:
    Show the changed Mac Address in Linux

Tips

See also

I aways move my laptop.When I got some place,I can't use my laptop connect internet.It always prompt that my IP address is wrong.What can I do?And I can use my laptop in my home,but I can't connect internet in company.I want to run my own email server in company.
An IP address serves two principal functions: host or network interface identification and location addressing. If your computer need to connect web in another location, you require to change IP address.
"IP Address" stands for Internet Protocol Address. Only with appropriate IP addresses can you connect to internet, and sometimes the IP address needs to be changed. "How to Change IP Address in Windows Vista" is the topic we're going to discuss.

Authors

Tagged Add my tag

sponsored ads

Recent Searches

Download this software from AFC

Transcribe! for Linux 8.21

Last Updated: May 25, 2012
License: Shareware
Filesize: 2.76MB

Continue to downloadPower by Afreecodec.com