Nic configuration under RedHat9.0

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.