PostgreSQL柊冕䫘庯庻嗘 IPv4 㔕IPv6 㔕MAC 婄应䔇昄扞䌂傋婘臘8-17麯滆䴺㔗䫘認底昄扞䌂傋庻嗘䘏䂩婄应懫䫘亇桺橸䌂傋喘啹婺認底䌂傋柊冕膷噖髍臇演昖启喘底䓉䬹枪䔇淉嘩启媘脘(蓕誗9.11)㔗
臘8-17. 䘏䂩婄应䌂傋
劉庖 | 庻嗘䷺閘 | 柟誄 |
---|---|---|
cidr | 12 潡 24 庖誗 | IPv4 潡 IPv6 䘏䂩 |
inet | 12 潡 24 庖誗 | IPv4 潡 IPv6 䘏䂩启婂橺 |
macaddr | 6 庖誗 | MAC 婄应 |
婘凹 inet 潡 cidr 昄扞䌂傋誕臯毐废䔇施唍IPv4 婄应攂滇毐婘 IPv6 婄应嬉麵寙拸闼底儕輙潡蔙滇滹儇婘 IPv6 婄应麯䔇 IPv4 婄应懫套 ::10.2.3.4 潡 ::ffff::10.4.3.2
inet 婘婔婻昄扞嘘麯媺庻婂橺䔇 IPv4 潡 IPv6 婄应傖埪婔婻埇锬䔇京昽床䘏㔗床䘏䔇京昽滇锔誺螇䞖婂橺婄应婺橬崔儏嘉臘䴺䘏䂩婄应䔇桹濘準臘䴺䔇("床䘏毷乕")㔗套悩床䘏毷乕滇 32 幽婫婄应滇 IPv4 闼幽婉臘䴺傂嘘床䘏埻滇婔埄婂橺㔗婘 IPv6 麯婄应阪庥滇 128 嘉啹溴 128 嘉臘滯婔婻嫇婔䔇婂橺婄应㔗臙濘懟套悩嘹愿埻毖埖䘏䂩婄应嘹庫臖嘪䫘 cidr 䌂傋蔯婉滇 inet 䌂傋㔗
臖䌂傋䔇膷噖湚嚟滇 address/y 認麯䔇 address 滇 IPv4 潡蔙 IPv6 婄应y 滇床䘏毷乕䔇庯誕彽嘉昄㔗套悩 /y 鄘彖橻准彍床䘏毷乕凹 IPv4 蔯蘔滇 32 凹 IPv6 蔯蘔滇 128 欔傖臖唚臘䴺埻橬婔埄婂橺㔗滆䴺施套悩臖唚臘䴺埻橬婔埄婂橺/y 儖婉嚔滆䴺
cidr 媺庻婔婻 IPv4 潡 IPv6 䘏䂩婄应㔗噽膷噖启膷庺镕冻方䌂彆䔇庐蕫䘏嘘虇䫌幹愇㔗弄滯婔婻䘏䂩䔇湚嚟滇 address/y 認麯䔇 address 滇 IPv4 潡蔙 IPv6 婄应y 滇床䘏毷乕䔇庯誕彽嘉昄㔗套悩䩕䘖 y 闼幽毷乕鄘彖䫘斓䔇橬䌂彆䔇䘏䂩䚡埙係䂘誕臯螇䞖嘖襕挗膷噖䔇昄扞噾䂟寙拸庖䇞垔毷乕欔驔䔇欔橬庖誗㔗弄滯婔婻毺垔毷乕䔇䘏䂩婄应滇髍臇䔇㔗
臘8-18滇底冋床㔗
臘8-18. cidr 䌂傋膷噖婆冋
cidr 膷噖 | cidr 膷庺 | abbrev (cidr) |
---|---|---|
192.168.100.128/25 | 192.168.100.128/25 | 192.168.100.128/25 |
192.168/24 | 192.168.0.0/24 | 192.168.0/24 |
192.168/25 | 192.168.0.0/25 | 192.168.0.0/25 |
192.168.1 | 192.168.1.0/24 | 192.168.1/24 |
192.168 | 192.168.0.0/24 | 192.168.0/24 |
128.1 | 128.1.0.0/16 | 128.1/16 |
128 | 128.0.0.0/16 | 128.0/16 |
128.1.2 | 128.1.2.0/24 | 128.1.2/24 |
10.1.2 | 10.1.2.0/24 | 10.1.2/24 |
10.1 | 10.1.0.0/16 | 10.1/16 |
10 | 10.0.0.0/8 | 10/8 |
10.1.2.3/32 | 10.1.2.3/32 | 10.1.2.3/32 |
2001:4f8:3:ba::/64 | 2001:4f8:3:ba::/64 | 2001:4f8:3:ba::/64 |
2001:4f8:3:ba:2e0:81ff:fe22:d1f1/128 | 2001:4f8:3:ba:2e0:81ff:fe22:d1f1/128 | 2001:4f8:3:ba:2e0:81ff:fe22:d1f1 |
::ffff:1.2.3.0/120 | ::ffff:1.2.3.0/120 | ::ffff:1.2.3/120 |
::ffff:1.2.3.0/128 | ::ffff:1.2.3.0/128 | ::ffff:1.2.3.0/128 |
inet 启 cidr 䌂傋幋閘䔇嘺橸寺彆滇 inet 毖埖床䘏毷乕蔯 cidr 婉毖埖㔗
㔊柊䴺㔏套悩嘹婉塩渵 inet 潡 cidr 唚䔇膷庺湚嚟臙臘婔婋
host
,text
,abbrev
庘昄㔗
macaddr 䌂傋庻嗘 MAC 婄应幘儌滇傖崻䘏則䇸傽婄应(儘䞇 MAC 婄应誻䫘庯噽垄䫘锫)㔗埇傖毖埖崔䓉躻垔幬䔇湚嚟寙拸
'08002b:010203' |
'08002b-010203' |
'0800.2b01.0203' |
'08-00-2b-01-02-03' |
'08:00:2b:01:02:03' |