Subject: Re: Mapping ports ?
To: Rakhesh Sasidharan <rakhesh@cse.iitd.ernet.in>
From: Alexander Frolkin <alexander@frolkin.demon.co.uk>
List: netbsd-users
Date: 03/10/2001 20:18:45
Hi,
> As of now, ftp-ing to 10.20.3.6 or 10.20.3.5 invokes the ftpd of port 21.
> What I am trying to do is that when I type "ftp 10.20.3.6", it
> automatically connects to port 821 (wu-ftpd) instead of port 21. I could
> do this explicitly with "ftp ftp://10.20.3.6:821", but is it possible to
> do it automatically ?
Try changing the ftp line in /etc/services from 21/tcp to 821/tcp.
> PS: Quite often I have seen notations like this: 10.0.0.0/24 or
> 209.1.2.3/32 etc. What do they mean (the / part) ?
/32 refers to a netmask of 255.255.255.255 (0xffffffff), i.e. all 32
bits are `1'. /24 refers to 255.255.255.0, etc.
So, 209.1.2.3/32 refers to a host with address 209.1.2.3 and
10.0.0.0/24 refers to a C-class subnet with address 10.0.0.
HTH
Alexander