Re: Sending traffic through Secondary IP Address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Monday 05 March 2007 02:09:21 pm Al Sparks wrote:
> I have set up a secondary IP address in the same network as my primary.
>
> So
>    eth0: 192.168.100.29 netmask 255.255.255.0
>    eth0:0 192.168.100.45 netmask 255.255.255.0
>
> And indeed when I invoke an apache instance that listens on the secondary
> IP address/interface it works, and it also makes it outside the LAN since
> the default gateway is defined in the routing tables for 192.168.100.0/24.
>
> But I'd like to be able to send out some sort of broadcast on the network
> from that secondary interface so that the arp tables on various devices on
> the network get updated.
>
> How would I, say, use nmap to do something like that?  Is there a generic
> way to force a particular program to use a secondary IP address instead of
> the default primary?
>
> Obviously, something like BIND or Apache httpd has that hardcoded in so
> that you can tell them to use secondaries via their configuration files.
>
> But how about those programs that don't?
ping -I 192.168.100.45 <destination>

or 
ping -I eth0:0 <destination>

-I tells ping what interface to send the packet out 



-- 
Dennis Gilmore, RHCE
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux