1. Query virtual machine information to obtain virtual machine ID openstack server list [root@cn1-test-opctrl ~]# openstack server list | grep 10.26.185.239 | 821674e4-b195-492f-907a-05f1b33e45ce | test-test1 2. Query all subnet information openstack network list [root@cn1-test-opctrl ~]# openstack network list +—————————————–+———- —– + —————————————– + | ID | Name | Subnets | +—————————————–+———- —– + —————————————– + […]
Tag: subnet
Subnetting, OSPF, VlanIF, DHCP, Eth-Trunk, single-arm routing (H1-6) Tianyan Technology Co., Ltd. network construction and maintenance
H1-6 Network construction and maintenance of Tianyan Technology Co., Ltd. (1) Task description Due to the development of its business, Tianyan Technology Co., Ltd. has established a new branch in other places. Now it requires network connectivity between the head office and the branch. The head office has three buildings, each with more than 600 […]
Kube-OVN Series – Use of Subnet
In this blog we introduce the use of Kube-OVN’s Subnet. If you haven’t set up a Kubernetes + Kube-OVN environment yet, you can refer to my previous article: Use Kubeadm to build a Kubernetes cluster. Initial VPC and Subnet Kube-OVN is ready to use out of the box. After downloading the one-click installation script install.sh […]
Java accurate get’ MAC/IP4/IP6/subnet mask/gateway/adapter/computer information plug-in
Table of Contents Java native API: C++ native way to start getting ip_if_filter: quoted from ipifcons.h family: quoted from ws2def.h Download colorful1.2 framework Tutorial A simple try Java native API: You can use: NetworkInterface to obtain computing network interface information (the following figure traverses all network interfaces) Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); while (interfaces.hasMoreElements()) { NetworkInterface […]
Windows10 c++ obtains network card information (ipv4, subnet mask, gateway, mac address)
About The style environment of this article: win10 + vs2017 + c++11 1.Description It’s a trap. I always thought that a network card can only have one IP. Today I found that in the structure, the relevant structure is defined: One network card can use Multiple IPs. 2. Connection library and header file 2.1 Header […]
Python script to convert network number/subnet mask into available IP network segment
1. Use the ipaddress library to convert IP network segments import ipaddress import threading import re #Introduce regular expression module import os importsys #Performance card explosion version def cal_ip(ip_net): try: print(ip_net) net = ipaddress.ip_network(ip_net, strict=False) print(‘IP version number: ‘ + str(net.version)) print(‘Is it a private address: ‘ + str(net.is_private)) print(‘Total number of IP addresses: ‘ […]
ip, subnet mask, gateway, default gateway
ip IP address = network address + host address (also known as: network number and host number), we call hosts with the same network number hosts in the local network, and hosts with different network numbers as hosts in the remote network. The hosts in the local network can communicate with each other directly, and […]
Linux c language to obtain the local ip, subnet mask
Article directory 1. Obtain the local ip 1.1 Get the ip of the specified network card 1.2 Obtain the ip address of all network interfaces of this machine 2. Obtain the local subnet mask 3. Obtain network interface information 1. Get local ip 1.1 Get the ip of the specified network card #include <stdio.h> #include […]
CCNP1: RIP – Routing Information Protocol (interference routing, V1, V2 compatibility issues, V1 continuous subnet issues)
Article directory CCNP1: RIP – Routing Information Protocol (interference routing, V1, V2 compatibility issues, V1 continuous subnet issues) 1. Explanation of RIP protocol: 1. The difference between V1 and V2: 3. The working principle of RIP: 4. The breaking mechanism of RIP: 5. What happens if RIP does not have a breaking mechanism? Second, the […]
[Reprint] Calculate ip based on subnet mask and gateway
1. What is a subnet mask? Before understanding the network segment of the ip address, let’s understand the subnet mask first. Many friends who don’t know much about the network are a little confused about the subnet mask. They don’t know what it is used for? The subnet mask cannot exist alone, it must be […]