how to change setup network linux debian Ip Address

RegisterLogin
how to change setup network linux debian Ip Address
Post Description: how to change setup network linux debian Ip Address
Tags: how, to, change, setup, network, linux, debian, Ip, Address
This Post Was Posted On Feb 29, 2008 By web hosting #2172
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 )

Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
justin lobos
#2238 1
ah, yeah. how to change my ip on debian this was hard to find
Dec 02, 2008 Reply Report abuse
©2011 Webune Forums - Wed Dec 21, 2011 2:54 am
Powered by: Webune Forums V3