Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #7252
| From | Tauno Voipio <tauno.voipio@notused.fi.invalid> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: How to "automatically" remotely add IP-addresses to a Linux computer? |
| Date | 2013-02-07 15:36 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <kf0akd$h61$1@dont-email.me> (permalink) |
| References | (2 earlier) <4e148a23-017b-4c61-a566-c244f2fe684f@googlegroups.com> <keuhmd$47u$1@dont-email.me> <a52a909d-1bd4-40be-b808-a75f15939863@googlegroups.com> <87obfwsaam.fsf@araminta.anjou.terraraq.org.uk> <888718ba-2d90-47b5-aaac-0b477fa91ad8@fn10g2000vbb.googlegroups.com> |
On 7.2.13 1:58 , dspfun wrote: > On 7 Feb, 11:11, Richard Kettlewell <r...@greenend.org.uk> wrote: >> dspfun <dsp...@hotmail.com> writes: >>> The "management system/program" is not really important for the >>> question, computer1 gets configuration information (IP-addresses) for >>> computer2, and computer1 should then automatically configure/add these >>> IP-addresses to computer 1 via a C-program or script. As well as >>> setting up routes in computer2. >> >>> I guess it is possible to use ssh in a C-program to automatically add >>> the configuratino as mentioned earlier in this thread, but is there >>> som other way to achieve this? >> >> If it's the SSH part you want to avoid then yes: you could use telnet, >> or rsh, or invent your own transport, or wire a serial cable between the >> two computers. The downsides of these approaches (or any others) are >> left as an exercise for the reader. >> > > To use ssh from a C-program (or any program/script), the output/ > result > of running any commands on the remote computer have to be "manually" > parsed to verify the expected configuration of the remote computer is > done. > > Right? > > Is there any easier way to do this (automatic remote configuration), > or is there some tool available to handle this? It is on purpose not too easy to remotely configure the network settings of a computer, of obvious security concerns. You could plant a script on the remote computer so that the script runs ifconfig and route (or just ip) with the proper parameters. Directly from C code, the network settings are set with suitable ioctl() system calls. For details, see the sources of ifconfig and route. I'd advise against this kind of approach. --- Would you please tell what you're attempting to achieve with such remote network set-up and configuration? I have an itch that you're attempting something that should not be done in that way. -- Tauno Voipio
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to "automatically" remotely add IP-addresses to a Linux computer? dspfun <dspfun@hotmail.com> - 2013-02-06 06:59 -0800
Re: How to "automatically" remotely add IP-addresses to a Linux computer? Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-06 15:31 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? dspfun <dspfun@hotmail.com> - 2013-02-06 13:05 -0800
Re: How to "automatically" remotely add IP-addresses to a Linux computer? Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-07 09:07 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? J G Miller <miller@yoyo.ORG> - 2013-02-06 15:51 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? J G Miller <miller@yoyo.ORG> - 2013-02-06 15:54 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? unruh <unruh@invalid.ca> - 2013-02-06 17:58 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? dspfun <dspfun@hotmail.com> - 2013-02-06 13:09 -0800
Re: How to "automatically" remotely add IP-addresses to a Linux computer? J G Miller <miller@yoyo.ORG> - 2013-02-06 21:24 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? dspfun <dspfun@hotmail.com> - 2013-02-06 13:33 -0800
Re: How to "automatically" remotely add IP-addresses to a Linux computer? unruh <unruh@invalid.ca> - 2013-02-06 22:19 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? J G Miller <miller@yoyo.ORG> - 2013-02-06 22:51 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-07 10:11 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-07 11:44 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? dspfun <dspfun@hotmail.com> - 2013-02-07 03:58 -0800
Re: How to "automatically" remotely add IP-addresses to a Linux computer? Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-07 12:03 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2013-02-07 15:36 +0200
Re: How to "automatically" remotely add IP-addresses to a Linux computer? dspfun <dspfun@hotmail.com> - 2013-02-07 06:37 -0800
Re: How to "automatically" remotely add IP-addresses to a Linux computer? Richard Kettlewell <rjk@greenend.org.uk> - 2013-02-07 15:07 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? The Natural Philosopher <tnp@invalid.invalid> - 2013-02-07 15:10 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? unruh <unruh@invalid.ca> - 2013-02-06 22:17 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? Aragorn <stryder@telenet.be.invalid> - 2013-02-06 23:51 +0100
Re: How to "automatically" remotely add IP-addresses to a Linux computer? Octothorpe <Octothorpe@invalid.com> - 2013-02-07 07:22 -0500
Re: How to "automatically" remotely add IP-addresses to a Linux computer? cipher <cipher@nospamforme.org> - 2013-02-07 20:46 +0000
Re: How to "automatically" remotely add IP-addresses to a Linux computer? J G Miller <miller@yoyo.ORG> - 2013-02-07 21:30 +0000
csiph-web