Tag:ip

  • CentOS virtual host construction based on IP, domain name and port

    Time:2021-9-7

    IP based virtual host construction in CentOS First, check that the httpd package is installed Install httpd package installation is complete Start service The main configuration file is / etc / httpd / conf / httpd.conf Edit the configuration file, move to the bottom and start modification Then create web1 and web2 at / var […]

  • IP regular expression validation

    Time:2021-8-15

    Finally, a regular expression verification program for IP address is written. Copy codeThe code is as follows: ((25[0-5]|2[0-4]\d|1?\d?\d)\.){3}(25[0-5]|2[0-4]\d|1?\d?\d) The screenshot is as follows:

  • Methods of viewing and modifying IP under Linux system

    Time:2021-8-9

    1. Display the currently started network interface command:   Copy code The code is as follows: ifconfig 2. View all current network interface commands:   Copy code The code is as follows: ifconfig -a 3. View the specified network interface command:   Copy code The code is as follows: ifconfig eth0 There are two ways […]

  • Method of automatically obtaining and statically configuring IP under Linux

    Time:2021-8-7

    Step 1: activate the network card After the system is installed, the default network card is eth0. Use the following command to activate this network card. Copy code The code is as follows: # ifconfig eth0 up  Step 2: set the network card to start when it enters the system If you want to automatically […]

  • Method of IP forwarding on Linux system

    Time:2021-7-27

    Hello, everyone. Today, let’s learn how to use iptables to realize IP forwarding (packet forwarding) from one network interface to another on Linux. The concept of IP forwarding is to make Linux machines send data from one network to another like routers. Therefore, it can be used as a router or proxy server to share […]

  • Win10 system can’t automatically bind IP protocol stack to network adapter

    Time:2021-7-7

    Win10 prompt “windows can’t automatically bind IP protocol stack to network adapter” how to do?Under the influence of the system upgrade or the third-party security software, this problem may be caused. It shows that WLAN can not be started. It can not be connected to the network and can not be repaired through the troubleshooting […]

  • How to bind MAC address with IP MAC binding

    Time:2021-6-23

    Why bind IP? You specify the IP can be on the Internet is not it? The reason for binding IP is that it will change IP. For example, the IP of my local computer is 192.168.1.11, which has been set on the firewall and is not allowed to access the Internet, but if I know […]

  • How to view public IP in Linux terminal

    Time:2021-6-7

    First of all, let’s review the general command to view IPifconfigLinux command to view IP address — ifconfigThe ifconfig command is used to view and change the address and parameters of the network interface$ifconfig -a  lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000  hme0: flags=863 mtu 1500 inet 211.101.149.11 netmask ffffff00 broadcast 211.101.149.255 ether 8:0:20:a7:4d:21  […]

  • JavaScript IP, domain name, mobile phone number regular expression verification code

    Time:2021-4-21

    This mobile phone number regular verification function can be said to be the latest support, which has a detailed description, no matter what number segment you add in the future, it is very easy to modify it a little.JavaScript mobile phone number regular expression verification function Copy codeThe code is as follows: // IP and […]

  • Using VBS to return IP configuration data

    Time:2021-3-31

    Description informationThe WMI script used to return configuration data (similar to the information returned by the ipconfig command).Script code Copy codeThe code is as follows: ‘ Returning IP Configuration Data  ‘ WMI script that returns configuration data similar to that returned by IpConfig.  strComputer = “.”  Set objWMIService = GetObject(“winmgmts:\\”& strComputer & “\root\cimv2”)  Set colAdapters = objWMIService.ExecQuery _    (“SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True”)  n = 1  WScript.Echo  For Each objAdapter in colAdapters     WScript.Echo “Network Adapter ” & n     WScript.Echo “=================”     WScript.Echo ”  Description: ” & objAdapter.Description     WScript.Echo ”  Physical (MAC) address: ” & objAdapter.MACAddress     WScript.Echo ”  Host name:              ” & objAdapter.DNSHostName     If Not IsNull(objAdapter.IPAddress) Then        For i = 0 To UBound(objAdapter.IPAddress)           WScript.Echo ”  IP address:             ” & objAdapter.IPAddress(i)        Next     End If     If Not IsNull(objAdapter.IPSubnet) Then        For i = 0 To UBound(objAdapter.IPSubnet)           WScript.Echo ”  Subnet:                 ” & objAdapter.IPSubnet(i)        Next     End If     If Not IsNull(objAdapter.DefaultIPGateway) Then        For i = 0 To UBound(objAdapter.DefaultIPGateway)           WScript.Echo ”  Default gateway:        ” & objAdapter.DefaultIPGateway(i)        Next     End If     WScript.Echo  […]

  • Diagram of network configuration process of IP and host name in centos7 system

    Time:2021-3-21

    CentOS has just been updated to centos7 in recent days, so many users do not know how to install and configure centos7. In particular, the host name, IP and other related network configurations of centos7 are different from the previous versions. How to configure the IP and host name network of centos7 system?   Tip: CEntos7 […]

  • How to query which IP is occupied in LAN? How to use free IP scanner

    Time:2021-3-17

    In the LAN, especially in the studio and company, we need to modify the IP address to access the Internet. Usually, after setting the IP address, we will prompt [the IP address has been occupied], and then we have to go back to modify the IP address. This experience introduces a very good free software——Free […]