Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ping from an alias IP address
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Vieri
Guru
Guru


Joined: 18 Dec 2005
Posts: 381

PostPosted: Mon Nov 12, 2012 10:44 am    Post subject: [SOLVED] ping from an alias IP address Reply with quote

Hi,

I have an interface (eth0) with IP addr. 10.215.147.110/16 and an alias IP address 10.215.246.110/16 and I'm doing test pings from it to a destination host.

ping -I eth0 <dest_host> works fine and it's using the source IP address 10.215.147.110.

How can I ping from eth0 but use the alias IP address as source?
ping -I eth0:1 <dest_host> doesn't seem to do the job.

I'd like to ping from 10.215.246.110 to <dest_host>

Thanks,

Vieri

[EDIT] using nmap -S 10.215.246.110 but I'd rather like to know if there's another way.


Last edited by Vieri on Mon Nov 12, 2012 3:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1142
Location: Austria

PostPosted: Mon Nov 12, 2012 11:48 am    Post subject: Reply with quote

Code:
ping -I 10.215.246.110 <dest_host>

_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
Vieri
Guru
Guru


Joined: 18 Dec 2005
Posts: 381

PostPosted: Mon Nov 12, 2012 3:41 pm    Post subject: Reply with quote

I thought I read the man page... well, thanks Massimo!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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