LinuxLAMP installation learning notes Nic settings

Source: Internet
Author: User
LinuxLAMP installation learning notes Nic settings-Linux Enterprise Application-Linux server application information, the following is a detailed description. Minimum CentOS5 Installation

Dual IP addresses for a single NIC (one Internet connection and one LAN)

# Cd/etc/sysconfig
# Vi network # This file is considered a global network setting file.

NETWORKING = yes # Whether the NIC is working
NETWORKING_IPV6 = no # Use IPV6
HOSTNAME = LAMPserver # Host Name
GATEWAY = 172.17.54.254 # default GATEWAY address

# Cd network-scripts/
# Vi ifcfg-eth0

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE = eth0 # Nic DEVICE file used
BOOTPROTO = static # use a static IP Address
HWADDR = 00: 0C: 29: 86: E9: 25 # MAC address
ONBOOT = yes # Start or not
BROADCAST = 192.168.1.255 # BROADCAST address
NETWORK = 192.168.1.0 # NETWORK segment
IPADDR = 192.168.1.225 # IP Address
NETMASK = 255.255.255.0 # Subnet Mask
GATEWAY = 192.168.1.254 # GATEWAY

# Cp ifcfg-eth0 ifcfg-eth1
# Vi ifcfg-eth1

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE = eth0
BOOTPROTO = static
HWADDR = 00: 0C: 29: 86: E9: 25
ONBOOT = yes
IPADDR = 172.17.54.225 # IP Address
NETMASK = 255.255.0.0 # Subnet Mask

# Cd/etc
# Vi resolv. conf

Nameserver 202.96.128.86 # define the dns ip address of China Telecom

Network completed.
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.