Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What is Scope ID in IPV6

843790Nov 28 2008 — edited Dec 2 2008
Consider the IPV6 Address

"fe80::1234%1".

The part of it %1 is called the scope Id. What is the significance of the scope id. ?

I notice that it causes Java to parse this IPV6 Address as invalid IP Address and the InetAddress.getByName() function then goes on to do a DSN lookup and then create a InetAddress for the same.

The point is that a simple IPV6 Validation for this fails but a DSN Lookup for it succeeds.

However on Windows boxes on doing a IpConfig I see the %1 or %2 sometimes. Haven't seen that on Unix flavours.

Following is an excerpt from MSDN _"The IPv6 literal address in the URI may include a scope ID. A scope ID can be an interface ID such as [FE80::1%1]. The URI standard, documented in RFC 3986, does not define the syntax for the scope ID, and the URI is considered non-uniform when the scope ID is present."_

Can anyone please explain in more detail. I am still researching on this.
Thankx.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 30 2008
Added on Nov 28 2008
1 comment
1,654 views