Date: Mon, 08 Oct 2007 16:08:49 +0200 From: Danny Braniss <danny@cs.huji.ac.il> To: =?iso-8859-1?Q?Angel_H=F6ngens?= <angelo@hongens.nl> Cc: freebsd-current@freebsd.org Subject: Re: iscsi port in /etc/services? Message-ID: <E1IetHt-0001VN-JR@cs1.cs.huji.ac.il> In-Reply-To: <000b01c7fc23$d6ee60f0$84cb22d0$@nl> References: <000b01c7fc23$d6ee60f0$84cb22d0$@nl>
index | next in thread | previous in thread | raw e-mail
> Hey guys, my first post here, so don't shoot me. (Don't know if this is =the > right place to come with the question) > > I'm running RELENG_6 (built yesterday)m and after installing the > iscsi-target from ports, I found that I could not get it started.. I =got > the error "***ERROR*** getaddrinfo: servname not supported for =ai_socktype", > which after googling for half an hour turns out to be a cryptic message > meaning a service is not found in /etc/services. > > After getting a later version of /etc/services, the iscsi-target would > start, but I was not able to connect using an initiator on another =machine. > I then found out these ports in /etc/services: (apparently since rev =1.112) > > iscsi 860/tcp> iscsi 860/udp > > While my initiator expected to see port 3260. After some more googling, =I > found out port 860 is a port to be used ONLY when in need of a system =TCP > port number (?) but by default, port 3260 must be used: > > RFC3720 says: > > The well-known user TCP port number for iSCSI connections assigned by > IANA is 3260 and this is the default iSCSI port. Implementations > needing a system TCP port number may use port 860, the port assigned > by IANA as the iSCSI system port; however in order to use port 860, > it MUST be explicitly specified - implementations MUST NOT default to > use of port 860, as 3260 is the only allowed default. > > Is this in error in /etc/services, or an error in my logic? > > > Kind regards, > > Angelo Höngens > The Netherlands. As far as I can tell, iscsi-target does NOT use /etc/services, it specifically requests port 3260, unless it's changed by the the -p flag. So your problem is somewhere in the configuration file. danny PS: the nice thing about FreeBSD is that you have the sources, of course that needs some basic computer language knowledge :-)help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1IetHt-0001VN-JR>
