91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

How to calculate the correct subnet for an interface (文檔 ID 1059759.1)

發布時間:2020-08-08 02:39:31 來源:ITPUB博客 閱讀:178 作者:xychong123 欄目:關系型數據庫
APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.2.0.1 and later
Information in this document applies to any platform.
GOAL
How to calculate the correct subnet to use in oifcfg, etc.
oifcfg requires you to enter the subnet used for public and cluster_interconnect networks.
However, ifconfig usually shows the IP and the netmask, but not the subnet.
This note will show how to determine the subnet to be used with oifcfg.
More generally, it also applies to the general question of determining the subnet for a given interface, given the IP address and netmask.
SOLUTION
Suppose that the interface to be used for public network is e1000g0 with ip address 171.197.26.137 and netmask ffffffc0.

In ifconfig -a output we will see this:

e1000g0:
flags=209040843
mtu 1500 index 2
inet 171.197.26.137 netmask ffffffc0 broadcast 171.197.26.191
groupname prod
ether 0:14:4f:95:39:9a


Note that the netmask is displayed as ffffffc0 in hex. (In some platforms it is displayed in decimal rather than hex.)
This netmask ffffffc0 = ff.ff.ff.c0 = 255.255.255.192 .
In binary notation this is 11111111.11111111.11111111.11000000

Another common way you may see to represent the netmask is as a simple 2-digit number like "26", to get this number, simply add up the digits: 

11111111.11111111.11111111.11000000
=> (1+1+1+1+1+1+1+1) + (1+1+1+1+1+1+1+1) + (1+1+1+1+1+1+1+1) + (1+1+0+0+0+0+0+0)
= 8+8+8+2 = 26

A fast way to find the subnet, given the network address (171.197.26.137) and the netmask (255.255.255.192), is to use an IP calculator.
Free IP calculators are available online. In this example, I used the calculator at http://jodies.de/ipcalc. Many others are available.

Plugging the address (171.197.26.137) and the netmask (255.255.255.192) into the calculator at http://jodies.de/ipcalc gives this output:

Result:
Address:  171.197. 26.137       10101011.11000101.00011010.10 001001
Netmask:  255.255.255.192 = 26  11111111.11111111.11111111.11 000000
Wildcard:   0.  0.  0. 63       00000000.00000000.00000000.00 111111
=>
Network:  171.197. 26.128/26    10101011.11000101.00011010.10 000000 (Class B)
Broadcast:171.197. 26.191       10101011.11000101.00011010.10 111111
HostMin:  171.197. 26.129       10101011.11000101.00011010.10 000001
HostMax:  171.197. 26.190       10101011.11000101.00011010.10 111110
Hosts/Net: 62

=> note how that gives the network 171.197.26.128/26
Ignore the /26 in this output, the "subnet" needed for oifcfg is 171.197.26.128.

Another way to get this information is to do a bit-AND on each bit of the address and netmask:

171.197. 26.137 => 10101011.11000101.00011010.10 001001
255.255.255.192 => 11111111.11111111.11111111.11 000000
                 & ------------------------------------ 
                   10101011.11000101.00011010.10 000000 => 171.197.26.128


Yet another way to get this information is from oifcfg itself.
The command oifcfg iflist shows the interface name and subnet for each interface:

$ ./oifcfg iflist
e1000g0 171.197.26.128
e1000g2 171.197.26.128
e1000g3 10.241.6.0

So now you see where that 128 is coming from in oifcfg iflist. For each interface, oifcfg iflist shows the subnet for that interface.

So to enter this into oifcfg as the public network, you would use this syntax:

oifcfg setif -global e1000g0/171.197.26.128:public
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

克拉玛依市| 临颍县| 建昌县| 施甸县| 常山县| 宁安市| 长海县| 浮山县| 汾西县| 宣武区| 西安市| 威远县| 泸溪县| 鞍山市| 惠水县| 菏泽市| 河津市| 岑溪市| 公主岭市| 云龙县| 新安县| 任丘市| 广丰县| 渭南市| 阿城市| 江永县| 凤山县| 宁强县| 宝鸡市| 天等县| 江油市| 加查县| 师宗县| 平舆县| 赤峰市| 桓仁| 三台县| 莒南县| 青阳县| 九台市| 翁源县|