In RedHat, open the terminal and run the "ifconfig" command. If the prompt is "command not found", we can solve the problem as follows:
1. Enter the absolute path of the ifconfig command. ifconfig is under the/sbin directory. Therefore, run the following command on the terminal:
/Sbin/ifconfig
2. You can also modify th
# Ifconfig
The system prompts that the command does not exist.
Use #/sbin/ifconfig
Cause: the default environment variable is incorrect.
Echo $ path is executed for common users and root users respectively. Four addresses are missing in path:/sbin:/usr/local/sbin: /usr/Kerberos/sbin
Ifconfig is exactly in/sbin.
Or
CAT/etc/profile. No environment variables
packets 58 bytes 5088 (4.9 KiB)RX errors 0 dropped 0 overruns 0 frame 0TX packets 58 bytes 5088 (4.9 KiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
2. in linux, in addition to the ifconfig command, you can configure the ip address. In addition, you can also use the ip address command (this method is used ).[Root @ bogon yum. repos. d] # ip addr l eno167777362: eno16777736: Link/ether 00: 0c:
Question: Just learn Linux just follow the network installed CENTOS7 after the login successfully entered Ifconfig, dumbfounded [[email protected]~]# ifconfig -bash:ifconfig: Command not found Workaround:This is a newly installed system, how can not find familiar with the ifconfig command? Search online, a lot of peopl
LFS installation ifconfig command-Linux Enterprise Application-Linux server application information, the following is a detailed description. OS: LFS6.2
Software: net-tools-1.60
Today, I finally solved the problem that had been around me for a long time. I entered the system but found that I didn't have ifconfig, n
6.6 There is no ifaddrget these functions, from 6.7 began to have.
I think I can make up this function by myself, probably the idea is
struct Ifreq req;
S=socket (af_inet,sock_dgram,0);
IOCTL (S,SIOCGIFADDR, (int) req);
Do some conversion to req.
Go from Tony Embedded Forum, Address: http://www.cevx.com/bbs/thread-28499-1-1.html
Ifconfig usage Explanation
Ifconfig Configuring the Network Int
1. Installation Requirements BackgroundWe know that the ifconfig command can be used to view, configure, enable, or disable a specified network interface, such as configuring the IP address, mask, broadcast address, gateway, etc. of the network card, which is not rich in functionality.The functionality of this command is very similar to the ipconfig of Windows systems.However, CentOS 7 no longer installs this command by default, many of which are repl
such as my profile, Cd/etc/sysconfig/network-scripts/ifcfg-auto_eth0 is the name, but the information I use Ifconfig displays is
eth6 Link encap:ethernet HWaddr 08:00:27:3f:55:54inet addr:192.168.137.103 bcast:192.168.137.255 mask:255.255.255.0Inet6 addr:fe80::a00:27ff:fe3f:5554/64 Scope:linkUp broadcast RUNNING multicast mtu:1500 metric:1RX packets:154 errors:0 dropped:0 overruns:0 frame:0TX packets:94 errors:0 dropped:0 overruns:0 carri
1. Specific steps to modify eth0 are as followsVi/etc/sysconfig/network-scripts/ifcfg-eth0,I, enter the Insert edit mode, the specific parameters are set as follows:Device=eth0Bootproto=none (can also be set to static IP address)Onboot=yesType=ethernetnetmask= Subnet MaskIpaddr=ip No.gateway= Gateway (virtual machine Gateway)ESC, exiting edit modeshift+:wq! Save and Exit commands2.ifconfig-a to see if it takes effect.3.service network restart, Web ser
Ping the IP address. the error message displayed in ifconfig is RXpackets: 234 errors: 12. the default Nic of VirtualBox virtual machine is incorrect (the company uses wireless network and selects a wired NIC ), after re-selection, you can www.2cto.com and: Oraclelinux (Red...
Ping the IP address. the error message displayed in ifconfig is "RX packets: 234 errors: 12". the default Nic of VirtualBox virtual
Problem description:
The centos7 system has been installed in the Virtual Machine. When you view the IP address and use the ifconfig command, the system prompts that the command cannot be found. You can use the ip addr command to query the IP addresses of the current system (1, 2 ):
Figure 1
Figure 2
Solution steps:
1. First, you will think about whether the ifconfig command path is not in the environment
Today in the free time on the VirtualBox installed CentOS virtual machine, login to the root user after the habitual execution of the ifconfig command, found that prompted the error
Helpless under the use of Niang, found a solution, here to provide a link
Http://www.centoscn.com/CentosBug/osbug/2014/0916/3750.html
Then on their own virtual machine to carry out the experiment, modify the error, summarize the document.
According to the documenta
Ipconfig
-A shows the configuration of all interfaces
Ifconfig eth0 display configuration of eth0
Ifconfig eht0 ip/mask[up|down]\
The configured address takes effect immediately, but fails to restart the Network service or hostNetwork ServicesRHEL5:/etc/init.d/network {start|stop|restasrt|status}RHEL6:/etc/init.d/networkmanager | {Start|stop|restasrt|status}
Note: {St
Continue learning Linux Basics today and use the Man command when you see how to view command Help, but enter this command on my CentOS command line to indicate that the command cannot be found. As shown below:[email protected] init.d]# man ifconfig-bash:man:command not foundThink of me installed is the smallest system, man is not installed, so install it. As a follow: after the Yum install man is installed
Unix System ifconfig is the interface Configurator, is a multi-function tool, its main task is to give the Ethernet card IP address, but the UNIX system ifconfig can do more work.
Ifconfig View Network interface information
We can use Ifconfig to collect the information of the network card, use the
In Windows, we can use the ipconfig command to obtain information about the NIC. in Linux, the command is ifconfig.
The information we can obtain is richer, including the traffic received and sent by the network card. It is not easy to use the C language to implement this command. As a result, the blogger consulted the relevant information, we know that the NIC information is saved in the/proc/net/dev folde
Continue learning Linux Basics today and use the Man command when you see how to view command Help, but enter this command on my CentOS command line to indicate that the command cannot be found. As shown below:[email protected] init.d]# man ifconfig-bash:man:command not foundThink of me installed is the smallest system, man is not installed, so install it. As a follow: after the Yum install man is installed
Under Windows we can use the ipconfig command to obtain information about the network card, under Linux command is ifconfig
We can obtain more information, including the network card to receive and send traffic, in the C language to achieve this command is not a simple matter, thus, the blogger through the access to relevant information, learned that the network card related information saved in the/proc/n
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.