Debian Linux Network Configuration

  

After the network is configured, Debian apt-get, aptitude and other commands can play their powerful functions; with the network, Linux can be called Linux.

Debian Linux Network configuration:

1. Configure IP, edit /etc/network/interfaces

If it is a fixed IP, the configuration is as follows:

auto lo eth0

Iface lo inet loopback

iface eth0 inet static

address 192.168.1.30

netmask 255.255.255.0

broadcast 192.168.1.255

Gateway 192.168.1.1

If DHCP, the configuration is as follows:

auto eth0

iface eth0 inet dhcp

2, configure DNS, edit /etc/Resolv.conf

3, remember to restart the network

/etc/init.d/networking restart

Copyright © Windows knowledge All Rights Reserved