How to identify a IPv6 address


#1

8000:0000:0000:0980:0000:FBEF:6F5D:3245 into IPv6 address?

  1. 8000::098::FBEF:6F5D:3245
  2. 8000::098:0:FBEF:6F5D:3245
  3. 8:0:0::6F5D:3245
  4. 8000:FBEF:6F5D:3245

#2

ans) 8000::980:0:FBEF:6F5D:3245

rules-> 1. trailing zeroes to be dropped.
2. 4 or more zeroes to be replaced by :: which could be used only once.
3. four zeroes to be replaced by single 0