1. Problem Description
The IP address on the Huawei switch is bound to the MAC address to establish an access control list. Only approved PCs can access the network.
2. Solutions
Create an access control list
> System-view: enters system mode.
] Acl number 6000 create an access control list
] Rule 0 deny ip first Disables any IP
The following small series for everyone to bring an article WinForm C # get the MAC address, IP address, subnet mask, the default gateway instance. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
1. Add an assembly
2. Introduce namespaces
Using System.Management;
3.
IP Address Verification:/^ (\d|[ 1-9]\D|1\D{2}|2[0-5][0-5]) \. (\d| [1-9]\d|1\d{2}|2[0-5][0-5]) \. (\d| [1-9]\d|1\d{2}|2[0-5][0-5]) \. (\d| [1-9]\d|1\d{2}|2[0-5][0-5]) $/The format is made up of "." Divided by four parts, each part of the range is0-255;Each section of the regular can be divided into several parts to write:200-255;100-199;10-99;0-9;The corresponding regular expression for each part:2[0-5][0-5];1\D{2};[1-9]\d; \dConnect up to:\d| [1-9]\
I am using the development environment is VS2008, the development of the system where the mobile terminal version of Windows Mobile 5.0. Because of the need for identity verification, the need to obtain the mobile terminal MAC address, so the search on the internet, mainly saw three ways to achieve the MAC address, is
If you are through the campus network or community access to the Internet, then must have heard of MAC address. What is the MAC address and what is the role of the MAC address in this LAN environment? Here is a description of the
Windows command Line input ipconfig to view the IP address and Mac physical address of the computer, what command does the MacBook Terminal enter to view the native IP and MAC address?
Open terminal input ifconfig named, will display a lot of information about the
1. obtain the Client IP address (this must be uploaded from the client to the backend): Under the jsp page, it is very simple, request. getRemoteAddr (); because the VIew layer of the system is implemented using JSF, the page cannot directly obtain similar requests, A forced conversion [java] public String getMyIP () {try {FacesContext fc = FacesContext is made in bean. getCurrentInstance (); HttpServletRequest request = (HttpServletRequest) fc. getEx
This article describes how to use php to obtain the IP address, host name, and mac address of all users in the LAN, if you need a php instance, you can refer to the php instance described in this article to obtain the computer IP address, host name, and mac
In a B/S system, we often need to obtain some information about the client, such as IP and MAC, for identity authentication. It is easy to obtain the MAC address of the server, but it takes too much effort to obtain the MAC address of the client. The common practice is to ca
In a B/S system, we often need to obtain some information about the client, such as IP and Mac, for identity authentication. In ASP. net, it is easy to get the MAC address of the server, but it is really easy to get the MAC address of the client. The common practice is to ca
Solution:
So here's how we fix it:
Remove the kernel's networking interface rules file so that it can be regenerated
# rm -f /etc/udev/rules.d/70-persistent-net.rules
Restart the VM
# reboot
Update your interface configuration file
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
Remove the macaddr entry or update it to the new macaddr for the interface (listed in this file:/etc/udev/rules. d/70-persistent-ne
BR = new bufferedreader (is); While (line = Br. Readline ())! = NULL) {result + = line;} catch (exception e) {e. printstacktrace ();} return result;}/***** @ Param IP destination IP address, generally, the result string processed by the * @ Param sourcestring command in the LAN * @ Param macseparator Mac separator * @ return MAC
I found several methods. After debugging and modification, the following method can be used to obtain the local IP address and MAC address. It can be used to implement this function. It is mainly used to add a reference to system. Management.
Using system; using system. management; using system. net; public class program {static void main (string [] ARGs) {try {
If you access the Internet through campus network or residential area, you must have heard of the MAC address. What is a MAC address? What is the role of a MAC address in this LAN environment? Next we will introduce the knowledge
If you access the Internet through campus network or residential area, you must have heard of the MAC address. What is a MAC address? What is the role of a MAC address in this LAN environment? Next we will introduce the knowledge
This article describes how to obtain the mac address and IP address of a local machine using python, and describes how to obtain system information using Python, for more information about how to obtain the mac address and IP address
Previous question: how can I log on to a specified computer, mac address limit, IP address restriction, certificate, and control, and so on? A friend posted a post asking for a method to restrict logon nbsp; what method can I use to log on to a specified computer, what are mac add
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.