2.NIC configuration information
( 1 ) static IP The contents are as follows
# vim/etc/network/interfaces
# This file describes the network interfacesavailable on your system
# and how to activate them. For more information, seeinterfaces (5).
# The Loopback network interface
Auto Lo
Iface Lo inet Loopback
# The Primary network interface
allow-hotplug eth0// Plug and Play
auto eth0// NIC self-booting
Iface eth0 inet Static
address192.168.0.42
netmask255.255.255.0
gateway192.168.0.1// intranet without Gateway is can not fill in
( 2 )DHCP automatically get
Allow-hotplug eth0
Iface eth0 inet DHCP//dhcp get IP address
Auto Eth0
#/etc/init.d/networking Restart// restart NIC
#ifconfig eth0 down\up// turn off and on eth0 nic or #ifdown eth0 && ifup eth0
#/etc/init.d/networking Stop &&/etc/init.d/networkingstart //debian6 need this to restart the NIC
#vim/etc/hostname// Modify computer name
#vim/etc/hosts// Modify hosts parsing
#vim/etc/resolv.conf// Configure DNS For example:nameserver 202.106.0.20
( 3 ) one NIC to edit multiple addresses
Auto eth0:1
Iface eth0:1 inet static
Adderss x.x.x.x
Netmask x.x.x.x.
( 4 ) Editor:resolv.conf file
NameServer # defines the IP address of the DNS server
Domain # defines local domain name, can not write
Search # defines the list of searches for a domain name, but does not write
Sortlist # Sorts the returned domain names, but does not write
#cat/etc/resolv.conf An example of:
NameServer 202.96.128.86
NameServer 202.96.128.166
( 5 ) Modify the NIC MAC Address
# vim/etc/network/interfaces
hwaddress ether 00:00:39:9e:58:3c // Add a new MAC address to the corresponding NIC configuration file
It can be changed temporarily, too .
Ifconfig eth0 Down
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
Ifconfig eth0 up
(6 ) NIC driver description
Drivers that do not have DellR410 in the DEBIAN7 system need to be manually installed, but drivers are already recognized by default in DellR420.
Debian System Learning Note (2): NIC configuration information