Tuesday, July 7, 2015

Configuring LAN in Debian 7 x64 Minimal CLI Only

For dynamic ip address (DHCP), edit file /etc/network/interfaces, add these lines:
auto eth0
iface eth0 inet dhcp
For static ip address, edit file /etc/network/interfaces, add these lines:
auto eth0
iface eth0 inet static
  address 192.168.1.11 -> change with your lan
  netmask 255.255.255.0 -> 
change with your lan
  gateway 192.168.1.1 -> 
change with your lan
  
dns-nameservers 8.8.8.8, 8.8.4.4 -> change or add with your name server
Restart your network service run:
# /etc/init.d/networking restart 

No comments:

Post a Comment