Networking Forums

Networking Forums > Computer Networking > Linux Networking > Accepting Incoming Traffic on Interface not configured with an IP

Reply
Thread Tools Display Modes

Accepting Incoming Traffic on Interface not configured with an IP

 
 
astonishs@yahoo.com
Guest
Posts: n/a

 
      08-13-2008, 05:56 AM
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.

 
Reply With Quote
 
 
 
 
Burkhard Ott
Guest
Posts: n/a

 
      08-13-2008, 07:41 AM
Am Tue, 12 Aug 2008 22:56:57 -0700 schrieb astonishs:

> 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.

> 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
 
Reply With Quote
 
Allen Kistler
Guest
Posts: n/a

 
      08-13-2008, 08:00 AM
(E-Mail Removed) wrote:
> 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.
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      08-13-2008, 08:55 AM
Hello,

(E-Mail Removed) a écrit :
> 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".

> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Blocked incoming traffic, why possible to get traffic? Char Jackson Network Routers 0 09-13-2010 06:38 PM
Incoming traffic filter Harley Network Routers 13 04-23-2010 01:29 PM
Tie UDP reply to incoming interface pk Linux Networking 15 09-16-2009 04:48 PM
Svr 2003 stopped accepting incoming RDP & FTP connections after SP Tiran Irani Windows Networking 3 07-15-2008 10:28 PM
Network Interface allows incoming traffic but won't connect to anything. Paul Rogers Linux Networking 1 10-03-2003 07:28 AM



1 2 3 4 5 6 7 8 9 10 11