Re: Addressing outgoing connections to a specific interface

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



On 8 November 2010 09:34, Dotan Cohen <dotancohen@xxxxxxxxx> wrote:
> Both those conditions are met in this use case, however the machine in
> question is on two networks:
>
> |--Network1--|--Network2--|
> A Â Â Â Â Â ÂC Â Â Â Â Â ÂB
>
> A: router on the wireless network
> B: router on the wired network
> C: CentOS laptop
Dotan, CentOS, Ubuntu or Windows, it does not matter. You cannot
access both networks at the same time unless you bridge them and even
then you can only have the machines with unique addresses.

You did say that you're not interested in one of the networks when
accessing the other one. Simply pull down your wifi network (ifconfig
wlan down), delete the arp entry (see arp -d), and then try accessing
the 2nd IP again.

This is how TCP/IP works, it's composed of networks and within a
network you can only have a machine with a unique IP address.

NAT hides the 2nd network and you can set up forward rules to access
behind the NAT. That's why we have been mentioning NAT.

-- 
Hakan (m1fcj) - http://www.hititgunesi.org
_______________________________________________
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