RSS
 

Set a Static IP in Debian Linux

10 Oct

1. Backup

cp /etc/network/interfaces /etc/network/interfaces.orig

2. Edit

nano /etc/network/interfaces

find “iface eth0 inet dhcp” and change it to:

iface eth0 inet static
          address 192.168.24.116
          network 192.168.24.0
          netmask 255.255.255.0
          broadcast 192.168.0.255
          gateway 192.168.24.1

using your network settings respectively.
save

3. Restart Networking

/etc/init.d/networking restart

If the network is unable to come back up it is possible that you have added non visible characters to the /etc/network/interfaces file (ie spaces, tabs, returns). Reload your backup and carefully try again.


 
No Comments

Posted in IT

 

Tags: , , , , ,

Leave a Reply