How To Change Setup Network Linux Debian Ip Address | Wallpaperama Forums

Forums » Linux Systems » How To Change Setup Network Linux Debian Ip Address
This Page Contains information about How To Change Setup Network Linux Debian Ip Address | Wallpaperama Forums By wallpaperama with 7 Replies. Last Upated: Thu Apr 24, 2014
during our installation of debian, by default, the system has our network as DHCP or as dynamic IP. To change your interface network setting from dynamic to static ip, we must do these steps:

login as root

send command:
nano /etc/network/interfaces


now when you open interfaces you will see something like this:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inte loopback

#The primary network interface
auto eth0
iface eth0 inet dhcp


now to change it to a static ip change the file to look like this for example:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inte loopback

#The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.101
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1


after you have made changes, save file and restart your network.


Next Step: Restart Network

(if you need to connect remotely later on, you can install ssh so you can configure your machine remotely. Click here to install SSH )

kisobran007
how do i save file after all this???
nibu
- at - kisobran007: as in nano usual. Quit you do with (crtl) (Y) - then you will be asked; or without leaving the session with (crtl) (Letter O)
siba
Hi,
thanks for the tutorial.

you need to correct the misspell:

"iface lo inte loopback"
uhm
the network part is wrong, you set up a /24 netmask but the network set is 192.168.0.0
jer
Yes, "inte" is mis-spelled. Should be "inet" in this line: iface lo inte loopback Should be: iface lo inet loopback
Shah
I know how to change IP address in Redhat & slackware. But didn't know how to do that thing in Debian. Thanks for letting me know. Good work
fun-zone.in
http://wallpaperama.com/forums/how-to-change-setup-network-linux-debian-ip-address-t1677.html
Title: How To Change Setup Network Linux Debian Ip Address | Wallpaperama Forums [2951]
Tags: how to change setup network linux debian ip address
By , 7 Comments