HomeHow to...How to Change Your IP Address in Linux Shell
How to Change Your IP Address in Linux Shell
Ever wonder how to easily change your IP address without having to go through the daunting task of going through the system menu? If you can open a Linux Shell and type on a keyboard, then you can change your IP Address with one command line.
Turn on the computer in which you are running a Linux distribution. Once started, open a Shell, which is similar to a command prompt screen in Windows.
To change the IP address you will need to use the “ifconfig” command. Also, you should have an IP address in mind that is different than your current IP address.
With an IP address in mind, type: “ifconfig eth0 192.168.X.XXX up” without the quotation marks and placing your numbers in for the Xs. Keep in mind that a normal IP address will begin 192.168 and then you should normally have one number then two to three numbers for the last section of the address
Press “Enter” to run the command and change your IP address. Once it is completed you should check the change by simply typing “ifconfig” without the quotation marks, and pressing “Enter.” This will display your current IP address so you can verify that is was changed to the one you entered in Step 3.
सयौ थुङ्गा फूलका हामी एउटै माला नेपाली, Welcome to my webpage. I'm from the Himalayan Country of Nepal. Well talking about me, I like mostly Web programming and Designing and furthermore I like Philosophical literature, Photography, Social networking. And I am Romantic and Sentimental person to some extent. Read more...
View Comments
Hi Ashesh
I need a script that does ifconfig eth0 up. I even changed my root permissions in /etc/sudoers.
I am using php and shell commands within it to run this script.
View Comments
Hi Ashesh
I need a script that does ifconfig eth0 up. I even changed my root permissions in /etc/sudoers.
I am using php and shell commands within it to run this script.
And tis is the main reason I like http://www.ashesh.com.np. oLve the posts.