View previous topic :: View next topic |
Author |
Message |
jakmanus n00b
Joined: 31 Jul 2003 Posts: 11 Location: Netherlands
|
Posted: Wed Jan 07, 2004 12:34 am Post subject: ping via alias |
|
|
we have the config
eth0 1.1.1.1
eth0:1 1.1.2
if i use ping we ping with eht0 but we want to ping with eth0:1
ip route is done but i think he uses always the first interface for trafic
is there a way to ping by eht0:1 execpt by params in the ping command mail cannot outsite becouse a block in oure ip range and by de second ip is looks good |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Wed Jan 07, 2004 10:31 am Post subject: Re: ping via alias |
|
|
jakmanus wrote: | is there a way to ping by eht0:1 execpt by params in the ping command mail cannot outsite becouse a block in oure ip range and by de second ip is looks good |
Shit jeezus probeer dat nog es in het NL... hier kan ik nix van bakken hoor |
|
Back to top |
|
|
mauz0r n00b
Joined: 01 Jan 2004 Posts: 9 Location: Oberrieden ZH/CH (Switzerland)
|
Posted: Wed Jan 07, 2004 10:38 am Post subject: you need different net's |
|
|
I'm not sure, but I think it doesn't run because both interfaces are in the same net. if the configuration would be for example
eth0 1.1.1.1/24
eth0:1 1.1.2.1/24
it would automatically ping with that interface that is in the same net like the destination. _________________ Die Sonne scheint,
die Vögel singen,
ein schöner Tag sich umzubringen.
versteht eh keiner... |
|
Back to top |
|
|
fleed l33t
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Wed Jan 07, 2004 11:03 am Post subject: |
|
|
tells you to use -I. Also, from past experience, you might need to be root if you want to change that kind of stuff. Oh, and mauz0r is also right if you're trying to ping different nets. |
|
Back to top |
|
|
|