BackgroundThe software needs to be installed on the server, and it must be connected to a public network like a MAVEN agent.First configured the gateway, found that the public network can be accessed through IP, in the configuration of DNS can access the public network through the domain nameInstanceConfigure how Linux can surf the web/etc/sysconfig/network-scripts/ifcfg-eth0 Configuring or modifying gateways and DNS in a configuration fileDNS1=8.8.8
This article transferred from: http://blog.csdn.net/jmyue/article/details/17288467Configuring the network on Windows is easy and has a graphical interface to manipulate. In Linux, the network is often configured with commands to modify files, so you need to know not only which files to configure, but also the capabilities of each configuration parameter in the file. In Linux such as Redhat/fedora, the network configuration file is generally/etc/syscon
CentOS Nic startup, configuration and other ifcfg-eth0 tutorials
Step 1 configure the file in/etc/sysconfig/network-scripts/ifcfg-eth0. It power CentOS under the ifcfg-eth0 configuration details:
[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE="eth0"HWADDR="00:0C:29:FD:FF:2A"NM_CONTROLLED="yes"O
[email protected] ~]# Vi/etc/sysconfig/network-scripts/ifcfg-eth0device=eth0# NIC device nameonboot=yes# Activate Yes at startup | nobootproto=static# protocol type DHCP BOOTP noneipaddr=192.168.1.90# Network IP addressnetmask=255.255.255.0# Network Subnet addressgateway=192.168.1.1# Gateway addressbroadcast=192.168.1.255# Broadcast Addresshwaddr=00:0c:29:fe:1a:09# network card MAC addresstype=ethernet# network card type is EthernetNote: You will need
Set ifcfg-eth0 after Nic replacement under centos
Today, one of the company's service hardware is broken, and the hard disk is pulled out, switched to another machine of the same model, and the mac address is changed to a new machine, later, it was discovered that the original Nic information was recorded by centos. When the service network restart was performed, it was still the original Nic, so it was necessary to know the record of the original Ni
Today, when I configure a network for a server with the operating system OracleLinuxServerrelease5.7, I encountered the problem of backing up the ifcfg-eth0 configuration file, causing the NIC to be unable to bind an IP address. I think this is an interesting case. I would like to record it for your reference.
Today, when I configure a network for an Oracle Linux Server release 5.7 Server, I encountered the problem of backing up the
Original link http://blog.csdn.net/pheror_abu/archive/2010/05/27/5628737.aspx
From: http://hi.baidu.com/lei005/blog/item/92df5e8314544a9cf703a648.html/Etc/sysconfig/network includes the basic network information of the host for system startup.
/Etc/sysconfig/network-script/the directory contains the information about the most initialized network started by the system.
/Etc/sysconfig/network-script/ifcfg-eth0 network configuration information
/Etc/xin
Today, to a school's server CentOS system configuration network, found that the school with the IP and gateway after the start of the network card is disconnected. Later, the teacher helped to troubleshoot, told me that can not be directly written in the Ifcfg file gateway, and to use a file to specify the gateway. There is no time to scrutiny, please forget it.Note or delete/etc/sysconfig/network-scripts/ifcfg
Reprint please indicate the source: http://blog.csdn.net/l1028386804/article/details/51537000
These configurations are based on VMware network Adapter VMnet8, assuming that my VMware network Adapter VMnet8 IP address is 192.168.106.1
The following figure:
My Ifcfg-eth0 file is configured as follows:
Device=eth0
type=ethernet
uuid=f9f0898c-bf2c-4183-857a-eab291cd904d
onboot=yes
NM_CONTROLLED= Yes
bootproto=static
ipaddr=192.168.106.130
netmask=
/Etc/sysconfig/network-scripts/ifcfg-eth0 configuration file, which is a system self-contained limited network configuration file, you can set the network configuration during the installation process, the related configuration file is saved in the ifcfg-eth0, such as configuring the network as DHCP during installation, the content in this file is DHCP. After successful installation, you can use the graphic
CentOS Network Configuration Example1. Configure DNSVi/etc/resolv.confJoin:Copy CodeThe code is as follows:nameserver 192.168.0.1nameserver 8.8.8.8nameserver 8.8.4.42. Configure the Gateway:Vi/etc/sysconfig/networkJoin:gateway=192.168.0.1Complete the following:Copy CodeThe code is as follows:Networking=yesHostname=localhost.localdomaingateway=192.168.0.13, configure the IP address:Vi/etc/sysconfig/network-scripts/ifcfg-eth0The contents are as follows:
#cat ifcfg-eth0
device=eth0
...
Reason: There is a multi-node server migration room, afraid of broken, the first hard drive down, the results put back when the wrong order, causing the bootNic is not right, the original eth01 into eth23, know how to engage.
Analysis:
Solution for eth0 device not found under CentOS
After Baidu, understand some information, hereby record here, in case to forget. Why would eth0 turn into eth1? A lot of LinuxDistribution
Type=ethernet #网卡类型Device=eth0 #网卡接口名称Onboot=yes #系统启动时是否自动加载Bootproto=static #启用地址协议--static: Static protocol--BOOTP Protocol--DHCP Protocolipaddr=192.168.1.11 #网卡IP地址netmask=255.255.255.0 #网卡网络地址gateway=192.168.1.1 #网卡网关地址dns1=10.203.104.41 #网卡DNS地址hwaddr=00:0c:29:13:5d:74 #网卡设备MAC地址broadcast=192.168.1.255 #网卡广播地址This article is from the "Technology First" blog, please be sure to keep this source http://wuxiangdong.blog.51cto.com/8274747/1575254/etc/sysconfig/network-scripts/
Device= "eth1" NIC namenm_controlled= parameters of the "Yes" network MamagerHwaddr= MAC addressType=ethernet typePREFIX=24 Subnet Mask 24 bitDefroute=yes is the default route, do you want to set the ETH onboot=yes set to Yes to automatically enable network connection on boot ipaddr= ip Address Bootproto=none set to None to disable DHCP, set to static IP address enabled, Set DHCP on for DHCP servicenetmask=255.255.255.0 Subnet Maskdns1=8.8.8.8 First DNS serverBroadcast broadcastUUID Uniqu
Sometimes when we clone a Linux virtual machine will find that the system out of ifcfg-eth0.bak files, then how can we remove it?1. Delete the Ifcfg-eth0.bak in the Devices directory[[Email protected] ~] #cd/etc/sysconfig/networking/devices/[[Email protected] ~] #rm-RF Ifcfg-eth0.bak2. Delete the Ifcfg-eth0.bak under t
We all know that the files under/etc/sysconfig/network-scripts/ifcfg-eth * are used to describe network settings in LINUX. However, you may not know that, due to ifup and other scripts, copying an ifcfg-eth * file to another file may cause some unintentional problems. It is related to the user's fault report today. The following is an example.I. Fault symptomAccording to the user's description, there is onl
/etc/sysconfig/network includes host basic network information for system startup
/etc/sysconfig/network-script/This directory is the system to start the most initialized network information
/etc/sysconfig/network-script/ifcfg-eth0 Network configuration information
/ETC/XINETD.CONF defines a network service initiated by the super process xinetd
/etc/protocols set the protocol for the host to use and the protocol number of each protocol
/etc/servi
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.