[CentOS] Addressing outgoing connections to a specific interface
hakan at koseoglu.org
Mon Nov 8 05:03:23 EST 2010
On 8 November 2010 09:34, Dotan Cohen <dotancohen at gmail.com> wrote:
> Both those conditions are met in this use case, however the machine in
> question is on two networks:
> 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
More information about the CentOS