DEVICE = eth0BOOTPROTO = staticIPADDR = 192.168.1.111BROADCAST = 192.168.1.255NETMASK = 255.255.255.0GATEWAT = 192.168.1.1ONBOOT = yesTYPE = Ethernet -------------- Modify/etc/resolv. conf to add nameser
DEVICE = eth0
BOOTPROTO = static
IPADDR = 192.168.1.111
BROADCAST = 192.168.1.255
NETMASK = 255.255.255.0
GATEWAT = 192.168.1.1
ONBOOT = yes
TYPE = Ethernet
--------------
Modify/etc/resolv. conf
Add nameserver 222.30.192.8 to the file
---------------------------------
Save and exit
Restart the NIC service:/etc/init. d/network restart
Ubuntu 7.0.4 Nic Configuration
------------------------------------------
Iface eth0 inet static
Address 192.168.1.111
Netmask 255.255.255.0
Gateway 192.168.1.1
Also modify the resolv. conf file
Then restart the NIC
During installation, ubuntu may use the dhcp server to obtain ip addresses and other information. If the dhcp server is used, the resolv. conf file can be automatically generated. Otherwise, this file does not exist by default and can be manually added.
Set iface eth0 inet dhcp
Use the names ifup-a and ifdown-a to generate the resolv. conf file.
Use the ifconfig command to view the NIC Information