Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ping via alias
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jakmanus
n00b
n00b


Joined: 31 Jul 2003
Posts: 11
Location: Netherlands

PostPosted: Wed Jan 07, 2004 12:34 am    Post subject: ping via alias Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed Jan 07, 2004 10:31 am    Post subject: Re: ping via alias Reply with quote

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
View user's profile Send private message
mauz0r
n00b
n00b


Joined: 01 Jan 2004
Posts: 9
Location: Oberrieden ZH/CH (Switzerland)

PostPosted: Wed Jan 07, 2004 10:38 am    Post subject: you need different net's Reply with quote

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
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Wed Jan 07, 2004 11:03 am    Post subject: Reply with quote

Code:
man ping
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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum