Networking 为什么不';IPv4地址中是否有区域id(如IPv6地址中%字符后的区域id)?

Networking 为什么不';IPv4地址中是否有区域id(如IPv6地址中%字符后的区域id)?,networking,ipv6,ipv4,Networking,Ipv6,Ipv4,在IPv6地址中,我们可以看到一个附加了百分位%字符的区域id(例如,fe80::1ff:fe23:4567:890a%3),用于标识接口。但是为什么我们不在IPv4地址中包含它们呢?但是我检查了IPv4 netconf,IPv4地址的描述提到了区域id。 因为每个IPv6接口都有相同的网络,所以您需要区域ID来确定发送到该网络时要使用哪个接口。 typedef ipv4-address { type string { pattern '(([0-9]|[1-9][

在IPv6地址中,我们可以看到一个附加了百分位%字符的区域id(例如,
fe80::1ff:fe23:4567:890a%3
),用于标识接口。但是为什么我们不在IPv4地址中包含它们呢?

但是我检查了IPv4 netconf,IPv4地址的描述提到了区域id。

因为每个IPv6接口都有相同的网络,所以您需要区域ID来确定发送到该网络时要使用哪个接口。
  typedef ipv4-address {
  type string {
    pattern
      '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}'
        + '([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])'
        + '(%[\p{N}\p{L}]+)?';
  }
  description
    "The ipv4-address type represents an IPv4 address in
   dotted-quad notation.  The IPv4 address may include a zone
   index, separated by a % sign.

   The zone index is used to disambiguate identical address
   values.  For link-local addresses, the zone index will
   typically be the interface index number or the name of an
   interface.  If the zone index is not present, the default
   zone of the device will be used.

   The canonical format for the zone index is the numerical
   format";
}