multiple IP's ....TFTP deamon can't handle that!?

multiple IP's ....TFTP deamon can't handle that!?

Post by Markus Nol » Thu, 30 Sep 1999 04:00:00



HI,

Problem:

RS/6000 with AIX 4.2, two IP on the same NIC, so far so good... Telnet and
FTP works on both IP's...but TFTP just don't seem to take it

Question: Does anyone know a way to have a TFTP deamon listen on two or more
IP's?????
-------------------------
Markus Noll
Volkswagen Hannover

 
 
 

multiple IP's ....TFTP deamon can't handle that!?

Post by Simon Marches » Tue, 05 Oct 1999 04:00:00


Are the two IP addresses on the same subnet? TFTP may get confused by an
unexpected IP address in the response, which the TFTP server may leave
to be set by the IP stack, which will use the IP address of the route
it's using.


> HI,

> Problem:

> RS/6000 with AIX 4.2, two IP on the same NIC, so far so good... Telnet and
> FTP works on both IP's...but TFTP just don't seem to take it

> Question: Does anyone know a way to have a TFTP deamon listen on two or more
> IP's?????
> -------------------------
> Markus Noll
> Volkswagen Hannover

--
comp.unix.aix FAQ:
http://www.faqs.org/faqs/by-newsgroup/comp/comp.unix.aix.html

 
 
 

multiple IP's ....TFTP deamon can't handle that!?

Post by Markus Nol » Wed, 06 Oct 1999 04:00:00


yes, they are in the same subnet

Problem is, the old tftp-server just went up in flames, and to make a smooth
transision, the IBM is suposed to take over the old IP for a short period of
time (in addition to its own IP)

Markus Noll
Volkswagen Hannover

-----------8><-------------------


> Are the two IP addresses on the same subnet? TFTP may get confused by an
> unexpected IP address in the response, which the TFTP server may leave
> to be set by the IP stack, which will use the IP address of the route
> it's using.


> > HI,

> > Problem:

> > RS/6000 with AIX 4.2, two IP on the same NIC, so far so good... Telnet
and
> > FTP works on both IP's...but TFTP just don't seem to take it

> > Question: Does anyone know a way to have a TFTP deamon listen on two or
more
> > IP's?????
> > -------------------------
> > Markus Noll
> > Volkswagen Hannover

> --
> comp.unix.aix FAQ:
> http://www.faqs.org/faqs/by-newsgroup/comp/comp.unix.aix.html

 
 
 

multiple IP's ....TFTP deamon can't handle that!?

Post by Thomas Bran » Tue, 12 Oct 1999 04:00:00



>yes, they are in the same subnet
>Problem is, the old tftp-server just went up in flames, and to make a smooth
>transision, the IBM is suposed to take over the old IP for a short period of
>time (in addition to its own IP)
>Markus Noll
>Volkswagen Hannover

Are you sure, that tftp is your Problem? We had to solve sth. similar
(booting of XStations from our RS/6000) and the problem was, that
bootp gives the one address, tftp listens on the other one.

$ ifconfig en0
en0: flags=e080863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,\
 GROUPRT,64BIT>
        inet 172.30.36.2 netmask 0xffffff00 broadcast 172.30.36.255
        inet 172.30.36.1 netmask 0xffffff00 broadcast 172.30.36.255

We had to specify the server by naming 172.30.36.2 explicit with the
X-Station-Server configuration.

$ grep xst1 /etc/bootptab
xst1:tc=x_st_mgr.ether130:ha=08005a7a404e:ip:sa=172.30.36.2

So it's neither bootp nor tftp, they have different thoughts about
IP-Addresses.

Maybe this is of interest:
$ oslevel
4.3.2.0
$ lslpp -w \*tftpd  
  File                                        Fileset               Type
  ----------------------------------------------------------------------------
  /usr/sbin/tftpd                             bos.net.tcp.client    File
$ lslpp -L bos.net.tcp.client
  Fileset                      Level  State  Description
  ----------------------------------------------------------------------------
  bos.net.tcp.client         4.3.2.1    C    TCP/IP Client Support

cu... Thomas
--
IBM RS/6000 console message: (System power is currently off)
Thomas Brandl, medat GmbH, Hilblestr. 54, 80636 Muenchen, Tel:+49/0 89-126808-0
Wehren Sie sich gegen SPAM-E-mails:   http://www.politik-digital.de/spam/

 
 
 

1. in 'getopt()', how to handle multiple options in the 'optarg' string?

Hi All,

Pardon the possible idiocy of this question:

I'm trying to use the 'getopt' routine for handling command-line flags and
while most of it works like a charm, I need to have 1 flag that has 2
arguments:

progname -g 10 filename  yadda yadda yadda

optarg is declared as an 'extern char *', as per the man page for this,
and after the call to getopt, is supposed to point to the beginning of the
variable string.  I read this to mean that after the call, optarg should
point to the string "10 filename".

However, using an intermediate pointer 'tempstr' (because I can't examine
'optarg' directly for some reason (Is that a clue?)), I see with my
debugger that after:
   .
   .
while ((c = getopt(argc, argv, "Lsvqhf:n:o:m:M:b:e:R:g:l:t:T:C:F:w:")) != EOF)
   .
   .
tempstr = optarg;

<now look at tempstr in memory, from the above example>

1 0 \0 f i l e n a m e \0

it looks like it's there but as 2 null-terminated strings instead of one,
so I can't read it in with a 'sscanf()' or suchlike.

Two questions:
1) Is this the correct action of getopt? (almost certainly 'yes' - I'm a
novice at this)

2) What is the usual way of extracting multiple options per flag using getopt?

Thanks in advance for any enlightenment.
Cheers
harry
--
Harry J Mangalam, MolBio+Biochem / Dev+Cell Bio, Rm 4201, BioSciII  UC
Irvine, Irvine, CA, 92717, (714) 824-4824, fax (714) 824 8598
--
Harry J Mangalam, MolBio+Biochem / Dev+Cell Bio, Rm 4201, BioSciII  UC Irvine, Irvine, CA, 92717, (714) 824-4824, fax (714) 824 8598

2. System Configuration File

3. multiple ip's - multiple inetd's?

4. Minicom Question

5. No 'cd', 'lcd' with tftp ???

6. Kernel 2.2.3 Networking Performance Really Bad!?!

7. ping -g 'gateway-IP' 'host-IP' DOESN'T work!

8. Microsoft is right, but they lied about their "openness"

9. can't 'put' to my tftp server (access violation)

10. Multiple public IP's for NAT to Multiple Internal machines

11. 'xterm -e...' can't handle shell metacharacters

12. Multiple 'connect' on ONE 'socket'?

13. IP tables script, multiple IP's ?