All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] sending paket from non primary ip
@ 2003-09-12 11:24 Robert Penz
  2003-09-12 11:43 ` Robert Penz
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Robert Penz @ 2003-09-12 11:24 UTC (permalink / raw)
  To: lartc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I want to use snmpget to get an status from a switch but I can't change my 
primary ip of the machine to the need ip bye the switch .. so I added it as 
eth:0 

how can I make the connection outgoing from that ip and not my primary?

- -- 
Regards,
Robert
- ----------
Robert Penz
robert dot penz at outertech dot com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/YazR8tTsQqJDUBMRAk2vAJ4p3VvVJUdPxM8iffh01oqEgzQqUgCgmnyf
fth0wfllwKUrOwx8M2Dj14s=SqoA
-----END PGP SIGNATURE-----

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] sending paket from non primary ip
  2003-09-12 11:24 [LARTC] sending paket from non primary ip Robert Penz
@ 2003-09-12 11:43 ` Robert Penz
  2003-09-12 11:47 ` Robert Penz
  2003-09-12 12:44 ` Ryan Goldberg
  2 siblings, 0 replies; 4+ messages in thread
From: Robert Penz @ 2003-09-12 11:43 UTC (permalink / raw)
  To: lartc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 12 September 2003 13:24, Robert Penz wrote:

got it working that way

iptables -t nat -A POSTROUTING -d $switch_ip -j SNAT --to-source 
$meine_die_non_prim

but does there not exit a warper in user space?


- -- 
Regards,
Robert
- ----------
Robert Penz
robert dot penz at outertech dot com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/YbFX8tTsQqJDUBMRAn50AJ4g1Hrv9jw9TbXkMt+FOfXf+u5DZACeKNi0
wy3P3ZhZDtoE9dqxgqCmGE0=X6rl
-----END PGP SIGNATURE-----

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] sending paket from non primary ip
  2003-09-12 11:24 [LARTC] sending paket from non primary ip Robert Penz
  2003-09-12 11:43 ` Robert Penz
@ 2003-09-12 11:47 ` Robert Penz
  2003-09-12 12:44 ` Ryan Goldberg
  2 siblings, 0 replies; 4+ messages in thread
From: Robert Penz @ 2003-09-12 11:47 UTC (permalink / raw)
  To: lartc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


oops sorry .. that doesn't work .... false alarm .... so I still need a 
solution ;-)



- -- 
Regards,
Robert
- ----------
Robert Penz
robert dot penz at outertech dot com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/YbJK8tTsQqJDUBMRApDhAJ9268idAxlJdMbxRUi44Ktwj4IRVwCcC574
7A6ALfiVa9IqpLFrSDocV9U=LcW2
-----END PGP SIGNATURE-----

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] sending paket from non primary ip
  2003-09-12 11:24 [LARTC] sending paket from non primary ip Robert Penz
  2003-09-12 11:43 ` Robert Penz
  2003-09-12 11:47 ` Robert Penz
@ 2003-09-12 12:44 ` Ryan Goldberg
  2 siblings, 0 replies; 4+ messages in thread
From: Ryan Goldberg @ 2003-09-12 12:44 UTC (permalink / raw)
  To: lartc


Sending packets from secondary IP:

ip route add <dest> via <router> src <secondary ip>

check with:

ip route get <dest>


Ryan

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-09-12 12:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-12 11:24 [LARTC] sending paket from non primary ip Robert Penz
2003-09-12 11:43 ` Robert Penz
2003-09-12 11:47 ` Robert Penz
2003-09-12 12:44 ` Ryan Goldberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.