Re: pinging from multihomed server

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: DS (t.h.i.s.n.t.h.a.t_at_a.d.e.l.p.h.i.a..n.e.t)
Date: 09/08/04


Date: 7 Sep 2004 21:34:59 -0500

sat@nivel8.com (sergio becerra) wrote in
news:cfa9cca3.0409062224.29e5df1b@posting.google.com:

> Hi,
>
> Imagine this situation:
>
> Windows 2000 server multihomed:
>
> nic1 (external->subnet 192.168.1.x)
> ip: 192.168.1.10
> mask: 255.255.255.0
> DG : 192.168.1.1
>
> nic2 (internal->subnet 192.168.16.x)
> ip : 192.168.16.1
> mask: 255.255.255.0
>
> routing is enabled
>
> The router in 192.168.1.1 has a static route to send back packets to
> subnet 192.168.16.x
>
> If i want to ping from the server to router 192.168.1.1 , what NIC
> will gene rate the icmp packet?
>
> Do I have a way to force it ?imagine just you want to check if the
> ping if g oing from 192.168.16.1 rather than 192.168.1.10 - without
> using traffic moni tors to capute packets.
>
> I know i could telnet to 192.168.1.1 and try to ping from the router
> to 192. 168.16.1 BUT just need a way to verify the originating NIC in
> ping commands on multihomed server.
>
> thanks in advance
> sincerely

Very simply, when a computer needs to send a packet to a destination
address, it first checks to see if the destination is on a local subnet.
If it is, it will send it out that local subnet interface.

If it is not, it will send it out the default gateway to be forwarded by
whatever device the g.w. is.

Therefore, a multi-homed PC, 192.168.1.x & 192.168.16.x, will send all
packets destined for the 192.168.16.x subnet directly out that interface.
All other packets should be sent from the 192.168.1.x subnet, since that
is where the gateway is attached.

DS



Relevant Pages

  • Re: spoofing ip as broadcast
    ... A subnet broadcast is sent out to the MAC address ff:ff:ff:ff:ff:ff ... only hosts in the same subnet will pay attention to the packet; ... As far out as practical that you can arrange, you should filter packets ...
    (comp.security.misc)
  • Re: spoofing ip as broadcast
    ... A subnet broadcast is sent out to the MAC address ff:ff:ff:ff:ff:ff ... only hosts in the same subnet will pay attention to the packet; ... As far out as practical that you can arrange, you should filter packets ...
    (comp.security.misc)
  • Re: Routing outbound IP packets on multihomed box
    ... The router for the 126 subnet is ... Using my workstation on a third subnet, ... sure how to get packets sourced from the 126 subnet to the router on the ... I tried the following ipfw rule right after allow loopback ...
    (freebsd-net)
  • Re: multihomed linux box IP packets sent on wrong subnet
    ... fixed it - course it's okay, i just need to sort out the subnet on ... What protocol are these packets? ... I would expect to see the packet originate ... Your Linux machine must register three IPs to what NetBios ...
    (comp.os.linux.networking)
  • Re: RV042 - Does anyone understand it? Documentation?
    ... Launch a packet destined for a "foreign" private subnet. ... Route such packets at their source to the LAN address of the RV042 VPN ... When the packet is received at the other end of the tunnel, ... i.e. the packet is destined neither for the local nor the remote subnet. ...
    (comp.dcom.vpn)