Re: Bridging



Hello,

Chris a écrit :

I've a linux box with say, eth0, eth1. This is using PPPoE to connect
to the internet, hence I have a ppp0 interface tied to eth0. Now, my
ISP gives me a 8 address subnet, say, a.b.c.0-7. The linux box is the
router, and is .6, and I'd like to be able IPs .1-.5 for my own hosts,
connected via a switch to eth1.

My first thought was to create a bridge containing ppp0 and eth1,
although I understand that this isn't possible.

I'm afraid there is no straightforward way to bridge together link layer protocols as different as ethernet and PPP.

(Could one bridge, say ppp0 and ppp1?)

Theroetically yes, but AFAIK the bridging code in Linux only works with ethernet.

What is the correct way to achieve this?

Routing. Simple good old plain static routing.
Enable IP forwarding on the box and give eth1 the address a.b.c.6/29. Give each host an address within a.b.c.1-5/29 and default gateway a.b.c.6.
.



Relevant Pages

  • Re: Controlling eth0,eth1,... assignment order?
    ... > etc) my ethernet modules are loaded in different order ... card will become eth0 and which eth1 and this matches what I ... interface and don't have a reason to care which card is designated eth0 ... In this example you would then create interface entries for wireless ...
    (Debian-User)
  • Re: NIC and USB to Ethernet
    ... since the laptop has only one Ethernet connection I used a ... USB to Ethernet adapter from D-Link which is supported. ... eth0 device: ... eth1 is controlled by ifplugd waiting ...
    (alt.os.linux.suse)
  • no more ethernet connection after upgrade
    ... Now one of my ethernet card is no more working: ... Here is eth1 in /etc/sysconfig/hwconf ... BTW I have a lot of problem with this kernel: I had to patch the nvidia ... installer to get the nvidia driver be compiled. ...
    (Fedora)
  • Cant get Linux to connect to the internet - 2 ethernet boards
    ... I am trying to set up a network using a Conectiva 9 ... I have this network running using a WinXP with two ethernet ... PCI: Found IRQ 10 for device 00:0a.0 ... eth1: VIA Rhine III Fast Ethernet Adapter ...
    (comp.os.linux.networking)
  • NIC and USB to Ethernet
    ... since the laptop has only one Ethernet connection I used a ... USB to Ethernet adapter from D-Link which is supported. ... eth0 device: ... eth1 is controlled by ifplugd waiting ...
    (alt.os.linux.suse)