In CentOS6.5, ifconfig cannot find eth0, And the IP address cannot be found.
After CentOS6.5 is installed, you can use ifconfig to view the IP address and use putty software for remote connection. However, eth0 is not found, and only l0 is used.
Solution:
(1) Go to the following directory:/etc/sysconfig/network-scripts/
(2) create a file in the current directory named: ifcfg-eth0
(3) Now you can edit the
ifconfig lo, eth0, br0, Wlan0 interface
Ifconfig Loeth0br0wlan0 Interface Lo Loopback interface eth0 Ethernet interface br0 Network Bridge interface Wlan0 Wireless interface
Lo Loopback interface
Lo Link encap:local Loopbackinet addr:127.0.0.1 mask:255.0.0.0
General Loopback Interface IP v4 address is: 127.0.0.1, subnet mask: 255.255.255.0
Virtual network interface: It is not real, it is not true to receiv
Original centos7.0 no netstat and ifconfig command issuesYum Install wgetRunning Yum install net-tools is OK.The default CentOS already has OpenSSH installed, even if you are minimizing the installation. So there is no introduction to the installation of OpenSSH.SSH configuration:1. Modify the Vi/etc/ssh/sshd_config to remove and modify the parameter values according to the parameter annotations that the template will modify:Port 22 Specifies the port
The ifconfig command cannot be run on the newly installed Centos Virtual Machine. How can this problem be solved ?, CentosifconfigIfconfig command not found
A newly downloaded centos system is installed in vsbox. However, the ifconfig command cannot be run when you view the ip address.
Run the following command:
[Root @ localhost sbin] # sudo yum install net-tools
If you cannot connect to the Internet,
Solution: The ifconfig command is not available after CentOS7 is installed in mini version
Configure yum source (local)
Mount the system installation discmount /dev/cdrom /mnt/cdrom/
Run the following command in linux:cd /etc/yum.repos.d/, And thenlsThe following files are displayed in the yum. repos. d file:CentOS-Base.repo CentOS-CR.repo CentOS-Debuginfo.repoCentOS-fasttrack.repo CentOS-Media.repo CentOS-Sources.repo CentOS-Vault.repoA to
Centos: run ifconfig and prompt commandnotfound. cause: some paths such as/bin/sbin are not added to the environment variable. you may try to make a test: cd/etc/sbinwww.2cto.com./ifconfg correctly displays the result. Edit files such as/etc/profile and paste these paths...
Centos: run ifconfig and prompt command not found. cause: some paths such as/bin/sbin are not added to the environment variable. try c
When you appear ifconfig the name of the network adapter profile is not the same, the situationIfconfig displays a network card named Eth1, and the configuration file name is Ifcfg-eth0, which results in a failure.Solution:1. Delete the/etc/udev/rules.d/70-persistent-net.rules file and restart the system.2, Ifconfig-a view the MAC address of the ETH1 network card, and then renamed Ifcfg-eth0 to Ifcfg-eth1,
Ifconfigcan view IP address and subnet maskIfdown (disable NIC)Ifdown Network device NameIfdown eth0Ifup (Start network card)IFUP Network device NameIfup eth0NetstatNetstat for viewing network statusCommon combination: Netstat-tuln Netstat-an
-T
List TCP protocol ports
-U
List UDP protocol ports
-N
Do not use domain name and service name, use IP address and port number
-L
List only network services that are in the l
Yum Install wgetRunning Yum install net-tools is OK.The default CentOS already has OpenSSH installed, even if you are minimizing the installation. So there is no introduction to the installation of OpenSSH.SSH configuration:1. Modify the Vi/etc/ssh/sshd_config to remove and modify the parameter values according to the parameter annotations that the template will modify:Port 22 Specifies the port number of the SSH connection, the default 22 port is not recommended for securityProtocol 2,1 allows
After installing CentOS6.5, through ifconfig to view IP to use Putty software to implement remote link, but found no eth0, only l0
Solution:
(1) Enter the following directory:/etc/sysconfig/network-scripts/
(2) Create a file under the current directory named: Ifcfg-eth0
(3) The new file can be edited at this time, add the following content (individual items to be modified)
Device=eth0 Physical Device Nameipaddr=192.168.1.x IP Addressnetmask=255.255.
When using a Docker container, there are times when Vim is not installed, and when you tap the VIM command, you are prompted to say: Vim:command not found, this time you need to install VIM, but when you knock Apt-get install Vim command, prompt:Reading Package Lists ... DoneBuilding Dependency TreeReading state information ... DoneE:unable to locate package vimThis is the time to knock:apt-get update,The purpose of this command is to synchronize the indexes of the sources listed in /etc/apt/sou
Ifconfig is our view/Set network port state commonly used commands, in fact, this command is a number of system function encapsulation, through the modification of struct ifreq, we can easily set the network port State, get the network port state.
This structure is located in the
/** * \file getifstat.c * \author WZJ * \brief Access this struct ifconf modify, query status * \version * \note * \date:2012 year August 11 Saturday 22:55:25/* #include
Linux: The network is a kernel featureChange the NIC nameRhel5:/etc/modprobe.congRhel6:/etc/udev/rules.d/70-persistent-net.rulesIfconfig eth0 displays only one network card information-A: Displays configuration information for all interfacesIfconfig eth0 Ip/mask [Down|up]The configured address takes effect immediately, but fails to restart the Network service or hostNetwork services:RHEL5:/etc/init.d/network [Start|stop|restart|status]RHEL6: Support t
configuration file to understand what has been modified through tools and how it has taken effect. An inappropriate analogy: Linux is a transparent box. Everything in the box is clear at a glance. However, we have no chance to know about the closed source operating system, but we do not know how it is implemented.
For complex network models, Linux has great advantages. We may look at man and help to modify
If the following problem occurs:[Email protected] ~]# ifconfigBash:ifconfig:command not found ...[Email protected] ~]#[Email protected] ~]# netstatBash:netstat:command not found ...[Email protected] ~]#Using provides to search for dependent
-tui (text-mode), System-config-network (graphics-mode), Netconfig (text-mode).
These tools will directly modify the Linux system configuration file on the network interface; this is ifconfig;
The Redhat-config-network and system-config-network tools are not only the tools to configure the network card, but also to configure ISDN and common cats, ADSL tools, network hardware additions, host name configurati
Said today do not know who provoked, and then inexplicably appeared siocsifaddr error.Symptom: Ubuntu and RHEL 5 under VMware have siocsifaddr errors, my first response is that there is a problem with VMware, it is not possible to two virtual
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.