| |
 |
|
|
Linux Forum Index » Linux Networking » Accepting Incoming Traffic on Interface not configured...
Page 1 of 1
|
| Author |
Message |
| ... |
Posted: Tue Aug 12, 2008 7:56 pm |
|
|
|
Guest
|
My understanding is that Linux uses a model where IP addresses are
assigned to machines, not to interfaces.
I've a PC with two NICs eth0 and eth1. PC is connected to network via
eth0.
Is it possible that instead of configuring IP on eth0, I configure on
eth1 and still PC is reachable from network.
Thanks. |
|
|
| Back to top |
|
| Burkhard Ott... |
Posted: Tue Aug 12, 2008 9:41 pm |
|
|
|
Guest
|
Am Tue, 12 Aug 2008 22:56:57 -0700 schrieb astonishs:
Quote: My understanding is that Linux uses a model where IP addresses are
assigned to machines, not to interfaces.
Nope, a machine can have more than one IP on the same interface.
Quote: I've a PC with two NICs eth0 and eth1. PC is connected to network via
eth0.
Is it possible that instead of configuring IP on eth0, I configure on
eth1 and still PC is reachable from network.
make sure that ip_forward is 1 and set the default gw via eth0
cheers |
|
|
| Back to top |
|
| Allen Kistler... |
Posted: Wed Aug 13, 2008 3:00 am |
|
|
|
Guest
|
astonishs at (no spam) yahoo.com wrote:
Quote: My understanding is that Linux uses a model where IP addresses are
assigned to machines, not to interfaces.
I've a PC with two NICs eth0 and eth1. PC is connected to network via
eth0.
Is it possible that instead of configuring IP on eth0, I configure on
eth1 and still PC is reachable from network.
IP addresses are assigned to interfaces.
If you don't configure eth0, you're not going to be able to use it for
much of anything.
Depending on how your two interfaces are wired, you can put different
addresses from either the same or different networks on each of them.
Using interface bonding, you can also put the same address on both of
them for high availability, but that's a different topic. |
|
|
| Back to top |
|
| Pascal Hambourg... |
Posted: Wed Aug 13, 2008 3:55 am |
|
|
|
Guest
|
Hello,
astonishs at (no spam) yahoo.com a écrit :
Quote: My understanding is that Linux uses a model where IP addresses are
assigned to machines, not to interfaces.
In a way, yes. It is called the "weak model".
Quote: I've a PC with two NICs eth0 and eth1. PC is connected to network via
eth0.
Is it possible that instead of configuring IP on eth0, I configure on
eth1 and still PC is reachable from network.
Yes, if eth0 has been bound to the IP stack (ifconfig eth0 0.0.0.0 up
can do it). It will reply to ARP requests for eth1's address and accept
incoming IP packets on eth0. But in order to be able to send IP packets
through eth0, the routes still need to be set on eth0. |
|
|
| Back to top |
|
| |
|
Page 1 of 1
All times are GMT - 5 Hours
The time now is Fri Nov 21, 2008 8:42 pm
|
|