(reproduced) Linux network Configuration and Setup Kit installation

Source: Internet
Author: User
Tags nameserver

See if the NIC is installed properly

Command: Lspci |grep ether

1. Modify the NIC configuration

Command: Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth0

Bootproto=none (dhct,static)

Hwaddr=00:14:2b:1b:22:20

Ipv6init=yes

Ipv6_autoconf=yes

Onboot=yes

netmask=255.255.255.0

ipaddr=192.168.1.241

gateway=192.168.1.1

Type=ethernet

Peerdns=yes

Userctl=no

Service Network restart

2. Modify the hostname of the machine

Vi/etc/sysconfig/network

hostname=gao.com.cn

3. Modify Host name query static table

Vi/etc/hosts

192.168.1.1 tudou.com Tudou

The first part IP Part two domain name third section respectively

4. Configure DNS

Vi/etc/resolv.conf

NameServer 8.8.8.8

NameServer 8.8.4.4

--------------------------------------------------------------------------------------------------

Setup Tool Pack Installation

Yum Install Setuptool installs setup, but only authentication configuration is available after installation using Run Setup.

If you want to configure IP, install system-config-network-tui .

Yum Install System-config-firewall-tui installs the graphical firewall configuration tool.

Yum List system-config* all installed.

Original address: http://blog.sina.com.cn/s/blog_946cb2b70100wx2j.html

(reproduced) Linux network Configuration and Setup Kit installation

Related Article

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.