| View previous topic :: View next topic |
| Author |
Message |
Vieri Apprentice

Joined: 18 Dec 2005 Posts: 266
|
Posted: Mon Nov 12, 2012 10:44 am Post subject: [SOLVED] ping from an alias IP address |
|
|
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 |
|
 |
massimo Veteran


Joined: 22 Jun 2003 Posts: 1085 Location: Austria
|
Posted: Mon Nov 12, 2012 11:48 am Post subject: |
|
|
| Code: | | ping -I 10.215.246.110 <dest_host> |
_________________ Hello, IT. Have you tried turning it off and on again? |
|
| Back to top |
|
 |
Vieri Apprentice

Joined: 18 Dec 2005 Posts: 266
|
Posted: Mon Nov 12, 2012 3:41 pm Post subject: |
|
|
| I thought I read the man page... well, thanks Massimo! |
|
| Back to top |
|
 |
|