Blue Flower

This is a quick guide about how to change the IP addresses in the most popular Linux distros

First, issue any of these commands to find out the version of Linux that you're running:

cat /etc/os-release

Disable the "beep" for VM Workstation

If you're running Linux VMs on your VMware Workstation application, like I do, go ahead and disable the yelling beep so save you stress; add this line to the .vmx file of the VM:

mks.noBeep = "TRUE"

For Debian

Have a look at the file /etc/network/interfaces and you'll notice first the loopback and then your lan on DHCP by default

If you want to set a Static IP, modify the interfaces file section of the lan (eth0) to read as follows:

# The primary network interface
auto eth0
iface eth0 inet static

For your changes to take effects, restart the lan by issuing these commands

ifdown eth0
ifup eth0

You can also use:

ifconfig eth0 down
ifconfig eth0 up

 If you want to change the mac addresses of your box, create the files "/etc/iftab" and add the mac for your Ethernet with this format: 

eth0 mac 11:22:33:44:55:66




Print Friendly, PDF & Email

Comments powered by CComment