http://blog.chinaunix.net/space.php?uid=20357359do=blogcuid=1798479Under Linux detects the network card and the network cable Connection status, uses the IOCTL to send to the socketSIOCETHTOOL命令字。 #include #include #include #include #include #include #include #include #include #include #include int get_netlink_status (const char *if_name);int main (){if (Getuid (
(Illustration) Basics of network formation: network cable production-Linux Enterprise Application-Linux server application information. For details, see the following.
Differences between express connect and crossover
Main Line, that is, Express Line
, Standard 568B): the two ends have the same line sequence. The line sequence from left to right is: White orange,
Desktop shared laptop Wireless Network (only one network cable is needed) I. Laptop settings: 1. first, share the wireless connection of the notebook to the wired network card, place the mouse over the network neighbor of the desktop, right-click the mouse, select properties
In the installation of the project, due to the limited conditions, are on-site production of network cable, generally do not use instrumentation, only through the pilot indicator to determine whether the guide, but the indicators can not really reflect the quality of the network cable, the production of some of the sof
When dealing with computer networks, it is inevitable that network cables should be used frequently. In fact, the production of Network cables is very simple, that is, to insert the 4-to-8-Core Cable of twisted pair wires into the crystal head according to certain rules, therefore, the materials required for the production of such
During project installation, due to the limited conditions, the Network cables are all made on site. Generally, you do not need to perform an instrument test. You only need to use the indicator lights to preliminarily determine whether the network cables are turned on or off. However, the indicator lights sometimes do not reflect the network cables, some soft fau
If you have external devices accessing the local Web site, the network that is routed through a network cable, not the wireless network card
Ask a question, the local server, with the wireless network card network, the external de
The crossover network cable is used for the connection between the adsl modem and the HUB (not all of which are related to the MODEM design). The connection between the HUB and the HUB does not pass the cascade connection port, and the two computers are directly connected to each other through the NIC. The production method is basically the same as the above, but the online order is not like 568B. It adopts
Enter Mii-tool to see if the network cable is connected to the network card#mii-tool
eth0:negotiated 100basetx-fd, link ok
Sometimes the driver may not support an error with the following errors#mii-tool
Siocgmiiphy on ' eth0 ' failed:operation not supported
No MII interfaces found
You can use Ethtool to view#ethtool eth0
Setti
At present, lan construction has been very common, and the integration of Ethernet cards on computers is already a standard configuration. The traces of LAN are everywhere around us. A simple small LAN composed of several computers in the family, large Internet cafes in public entertainment venues, campus networks on campus, office networks in the company, and so on are all examples of local area networks. Although they have various networking modes, the current LAN networking mode is still domi
The following is the 3 machine in the same time period of network bandwidth usage, from the following three figures can be seen, machine a bandwidth usage is very unstable, suddenly high and low, the bandwidth used in the previous second 1M, the next second may reach 20M, machine B and machine C bandwidth usage is obviously more stable, first look at the following:Machine-AMachine-BMachine-CAbout machine A This situation, I started to think hard disk
the reason the network cable was unplugged:
Reason one:
Because the network cable interface with magnetic field or magnetic interference phenomenon caused by computer network instability computer will be prompted to be unplugged.
Solution:
Call local
high-speed optical fiber cables need to be correctly selected as appropriate testing instruments.
Laser and LED
The laser emitting power is very high, and the emitted light is very concentrated. The light emitted by LEDs is usually scattered and the power is low. Compared with LEDs, lasers can send high-speed pulses, which is also the main reason for using lasers in high-speed networks. For Single-Mode Optical Fiber Links, Fabry-Perot laser light sources are usually used. The new VCSEL (Vertica
The daily use of the computer at the same time some friends may encounter is on the internet or just turned on the computer when prompted network cable was unplugged, such a phenomenon makes people very disgusted, the general phenomenon is not the computer network is not connected to the network is always interrupted,
Category 5. Category 6, Category 6, and category 7 are basically self-styled by manufacturers. Because more than five categories of standards have already been introduced, some manufacturers have produced a type of technical indicator that is better than five categories, and 6 categories of Self-sealing; due to market competition, other manufacturers have produced a network cable that is higher than the "6
Ethernet (EtherNet)Originally created by Xerox, the Ethernet was developed jointly by DEC, Intel and Xerox three companies in 1980 as a standard. Ethernet is the most widely used local area network, including standard Ethernet (10Mbps), Fast Ethernet (100Mbps), Gigabit Ethernet (Mbps), and 10G Ethernet, all conforming to the IEEE802.3 Series standard specification.(1) Standard EthernetThe first Ethernet only has a 10Mbps throughput, and it uses the ac
Ideas:
The main program creates a process, checks the network status every 2 seconds, and then prints the output
Check the file
/Sys/class/NET/wlan0/operstate (Wireless Network)
/Sys/class/NET/eth0/operstate (wired network)
Check the file content to determine whether the current network is connected
When the value is u
As optical fiber transmission technology matures and the price of Optical Fiber becomes lower and lower, traditional coaxial cable transmission is increasingly unable to adapt to the development of optical network today, it has the advantages of low transmission loss, long transmission distance, working bandwidth, and strong anti-interference ability, making it the most ideal carrier for optical
In the formation of local area network, in accordance with the general wiring of generic specifications, the construction should be used with "rice standard" network cable or on both sides of the crystal head set dedicated "special-shaped number", and in the cabinet to do with "rice mark" or "Number tube" corresponding to the computer identification record Many u
In the formation of local area network, in accordance with the general wiring of generic specifications, the construction should be used with "rice standard" network cable or on both sides of the crystal head set dedicated "special-shaped number", and in the cabinet to do with "rice mark" or "Number tube" corresponding to the computer identification record Many u
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.