Change Your IP Address From the Command Line in Linux

This is your new page.

It’s easy to change your IP address using a graphic interface, but did you know that Linux also lets you change your network card’s IP address using a simple command from the command line?

 

This trick should work on all Debian-based Linux distros, including Ubuntu. To get started, type ifconfig at the terminal prompt, and then hit Enter. This command lists all network interfaces on the system, so take note of the name of the interface for which you want to change the IP address

To change the settings, you also use the ifconfig command, this time with a few additional parameters. The following command changes the network interface named “eth0” to use the IP address 102.168.0.1, and assigns the subnet mask 255.255.255.0:

sudo ifconfig eth0 192.168.0.1 netmask 255.255.255.0

 You could, of course, substitute in whatever values you want. If you run ifconfig again, you will see that your interface has now taken on the new settings you assigned to it.

ipfinder.io Free IP Geolocation API and Accurate GeoIP Lookup Location Database provide country, city, latitude, longitude, time zone, current time, state Firewall

IP Finder offers one of the leading IP to geolocation APIs and global IP database services worldwide IP Finder

Top