RedHatLinux5 Network Configuration

Source: Internet
Author: User
RedHatLinux5 network configuration 1. ifconfig command 1, # ifconfig -- you can set the status of the network device or display the current settings, which can be used to view the current network

Network Configuration of Red Hat Linux 5

I. ifconfig command

1. # ifconfig -- you can set the status of the network device or display the current settings to view the IP address of the current network device.

# Ifconfig eth0 -- view the status of the specified eth0 NIC (including IP information)

2. Enable Nic

# Ifconfig eth0 up or # ifup eth0

3. Disable the NIC

# Ifconfig eth0 down or # ifdown eth0

2. Configure the NIC

1. Modify the NIC configuration file to set

Nic configuration file for eth0:/etc/sysconfig/network-scripts/ifcfg-eth0

Static IP Address

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]

DEVICE = eth0 indicates the nic device, which must match the configuration file

BOOTPROTO =NoneSTARTUP configuration protocol [NoneStatic dhcp]

ONBOOT = yes boot activated?

HWADDR = 00: 0c: 29: 97: 5a: 4d physical address MAC

NETMASK = 255.255.255.0 Subnet Mask

IPADDR = 192.168.10.153 IP Address

TYPE = Ethernet network TYPE

Dynamic IP Address

DEVICE = eth0

BOOTPROTO =Dhcp

HWADDR = 00: 0c: 29: 97: 5a: 4d

TYPE = Ethernet

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.