How can i get data using IPv6?

This is a discussion on How can i get data using IPv6? within the SNMP Coders forums, part of the Networking and Network Related category; --===============1747005437== Content-Type: multipart/alternative; boundary="----=_Part_242_15409072.1206353821113" ------=_Part_242_15409072.1206353821113 Content-Type: text/plain; charset=ISO-8859-1 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-24-2008
KyungHoon Kang
 
Posts: n/a
Default How can i get data using IPv6?

--===============1747005437==
Content-Type: multipart/alternative;
boundary="----=_Part_242_15409072.1206353821113"

------=_Part_242_15409072.1206353821113
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

To get a data using IPv4,


we just set dotted ip address to 'peername' field like below.


session.peername = "xx.xx.xx.xx"


Detailed example is net-snmp site.

http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application<To%20get%20a%20data%20using %20IPv4,%20we%20just%20set%20dotted%20ip%20address %20to%20'peername'%20field%20like%20below.%20sessi on.peername%20=%20%22xx.xx.xx.xx%22%20Detailed%20e xample%20is%20net-snmp%20site.%20http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application>


If I want to use IPv6 address (xx:xx:xx:xx:xx:xx:xx:xx) , how do i set IPv6
address.


'peername' is only for domain or dotted IP address(IPv4). So if i set IPv6
address to 'peername', Unknown host error is happened.


Please tell me how to i get a data using IPv6.


Thank you for reading.

------=_Part_242_15409072.1206353821113
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

&nbsp;<span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">To get&nbsp; a data using IPv4,&nbsp;</span>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">we just set dotted ip address to 'peername' field like below.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Lucida Grande; color: #236e25; min-height: 16.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 11.0px; font: 10.0px Courier; background-color: #f9f9f9">session.peername = &quot;xx.xx.xx.xx&quot;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Lucida Grande; color: #236e25; min-height: 16.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">Detailed example is net-snmp site.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica"><a href="To%20get%20a%20data%20using%20IPv4,%20we%20j ust%20set%20dotted%20ip%20address%20to%20'peername '%20field%20like%20below.%20session.peername%20=%2 0%22xx.xx.xx.xx%22%20Detailed%20example%20is%20net-snmp%20site.%20http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application">http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application</a></p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">If I want to use IPv6 address (xx:xx:xx:xx:xx:xx:xx:xx) , how do i set IPv6 address.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">'peername' is only for domain or dotted IP address(IPv4). So if i set IPv6 address to 'peername', &nbsp; Unknown host&nbsp; error is happened.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">Please tell me how to i get a data using IPv6.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica">Thank you for reading.</p>

------=_Part_242_15409072.1206353821113--


--===============1747005437==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--===============1747005437==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============1747005437==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:19 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0