Changing from Dynamic to Static IP address in Linux
|
01-30-2012, 01:35 AM
Post: #1
|
|||
|
|||
Changing from Dynamic to Static IP address in Linux
Once you have installed a brand new Linux distro on your machine, you might want to connect to internet using the static ip address provided by your ISP. This configuration will work on Debian based linux machines or the debian variants like Ubuntu, Mint Linux and others.
As a root user, edit your /etc/network/interfaces file. nano /etc/network/interfaces Change From DHCP TO Static IP On Debian Edit the /etc/network/interfaces file. Note, use the ip addresses specific to your network instead of just copying pasting from below. When you are finished your file should look like the following: Quote:#iface eth0 inet dhcp Once done, you might want to restart your networking service and up the interface by using the commands below.. Quote:/etc/init.d/networking restartand you are done. Congratulations, you can now use your static IP to connect to internet in Debian or Ubuntu. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)