Networking Forums

Networking Forums > Computer Networking > Linux Networking > eth0 and eth1 on same subnet using netmask

Reply
Thread Tools Display Modes

eth0 and eth1 on same subnet using netmask

 
 
Martin Klar
Guest
Posts: n/a

 
      09-14-2007, 05:01 PM
Hi,

is it possible to setup routing:

eth0 (e.g. ethernet) and eth1 (e.g. WLAN)

on the SAME subnet (e.g. 192.168.3.x) just specifying
a special netmask each?

Thank you for ideas

Martin
 
Reply With Quote
 
 
 
 
Rick Jones
Guest
Posts: n/a

 
      09-14-2007, 07:07 PM
Martin Klar <(E-Mail Removed)> wrote:
> is it possible to setup routing:


> eth0 (e.g. ethernet) and eth1 (e.g. WLAN)


> on the SAME subnet (e.g. 192.168.3.x) just specifying
> a special netmask each?


What do you mean by setup routing here? You mean such that this
machine will connect users on the ethernet to users on the WLAN when
all are in the same IP subnet? If so, then I would think that would
be a job for _bridging_ (operating at layer2) rather than _routing_
(operating at layer3 - eg IP).

Even if you sorted-out netmasks to make things happen at IP (layer3)
the decision on what to use as a router is made by the client, not the
router, so each system in the Ethernet would need to be configured to
use your system to reach the IPs in the WLAN and vice versa.
UNLESS... you could run proxy-ARP on your system, then while everyone
on the ethernet and the WLAN think they are in the same subnet, you
"fake them out" by responding to their ARP requests with your MAC
addresses.

Given what you've described thusfar, I think it might be best to
enable and setup bridging on your system.

rick jones
--
web2.0 n, the dot.com reunion tour...
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
 
Reply With Quote
 
Thomas Schodt
Guest
Posts: n/a

 
      09-15-2007, 06:55 AM
Martin Klar wrote:
> Hi,
>
> is it possible to setup routing:
>
> eth0 (e.g. ethernet) and eth1 (e.g. WLAN)
>
> on the SAME subnet (e.g. 192.168.3.x) just specifying
> a special netmask each?


With a netmask of 255.255.255.128
192.168.3.0/25 and 192.168.3.128/25
are two subnets within 192.168.3.x

and interfaces on one and interfaces on the other
no longer are no longer on the SAME subnet.

Select a different netmask for different granularity.
 
Reply With Quote
 
Allen Kistler
Guest
Posts: n/a

 
      09-15-2007, 02:35 PM
Martin Klar wrote:
> is it possible to setup routing:
>
> eth0 (e.g. ethernet) and eth1 (e.g. WLAN)
>
> on the SAME subnet (e.g. 192.168.3.x) just specifying
> a special netmask each?


If you mean can two interfaces exist on the same wire with
non-overlapping networks, then yes, although there are very few
instances where you'd want that (i.e., run different networks on the
same wire without using vlans).

If you mean can two interfaces exist on different wires with
non-overlapping networks, then yes, of course. Subnet boundaries do not
have to have masks with lengths that are multiples of 8.

The only requirement is that networks do not overlap.
 
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
eth0 answering for eth1 ?? hobbzilla Linux Networking 1 07-24-2006 09:47 PM
eth1 and eth0 different networks and not accessible H. S. Linux Networking 9 05-21-2005 01:57 AM
socket programming using either eth0 or eth1 David Peters Linux Networking 4 11-23-2004 12:33 PM
Eth0 and eth1 Captain Beefheart Linux Networking 7 07-22-2004 06:39 PM
Order eth0, eth1, ... Visvanath Ratnaweera Linux Networking 4 11-13-2003 08:00 PM



1 2 3 4 5 6 7 8 9 10 11