using the API functions provided by the Windows SDK GetAdaptersInfo () can obtain the network card name of all network cards, network card description, network card MAC address, network card IP, network card type and other information, and ip_adapter_info structure storage,
1. Use C programming to check whether the network card is connected to the network cable
# Include # Include # Include # Include # Include Int main (){If (check_nic ("eth0") = 0)Printf ("detect OK./N ");ElsePrintf ("detect fail./N ");} // If the network card is connected, 0 is returned; otherwise,-1 is returned.Int check_nic (char * nic_name){Struct ifreq IFR
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 problems, hard disk for two years, there may
If you want external devices to access the local website, use the network cable to access the network connected by the route. if you want to ask a non-wireless network adapter, you can set up a local server. after you use a wireless network card to connect to the network, external devices can nbsp; access the local website through an automatically generated ip address, and the ip address becomes 192.168 af
If you want external devices to access the local website, use the network cable to access the network connected by the route. if you want to ask a non-wireless network adapter, you can set up a local server. after you use a wireless network card to connect to the network, external devices can nbsp; access the local website through an automatically generated ip address, and the ip address becomes 192.168 af
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 ()! = 0){fprintf (stderr, "NetLink Status Chec
If you want external devices to access the local website, use the network cable to access the network connected by the route. if you want to ask a non-wireless network adapter, the local server will be connected by a wireless network card, an external device can access a local website through an automatically generated ip address, and the ip address becomes 192.168 after the network
Ask a question, the local server, with the wireless network card network, the external device can be automatically generated by IP access to the local site, and through the network cable routed through the network, IP becomes 192.168 ... , the external access is not, how to solve this?
Reply to discussion (solution)
Do port mapping on the routerWhat do you do? The instructions in the router are
Do port
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 device can be automatically generated by IP access to the local site, and through the network cable
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
Settings for eth0:
Supported ports: [TP]
Suppo
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.