Linux software bridge question

Linux software bridge question

Post by Coenraad Loubse » Fri, 22 Apr 2005 16:55:41



I use a software bridge to connect different segments of a lan together.

ppp0 is my dsl link, br0 is my lan

The server is doing nat, this, that..

Can anyone tell me what would happen if I added ppp0 to the bridge?

Would it work? Does the bridge allow interfaces like ppp0 to be bridged?

Secondly, how badly would I*my ISP around by adding more IP's on
their range? Would that work? I suppose I wouldnt have connectivity...

Why would I do this? I wouldnt, just wondering...

www:/ # ifconfig
br0       Link encap:Ethernet  HWaddr 00:08:A1:40:47:B9
           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
           inet6 addr: fe80::208:a1ff:fe40:47b9/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:44444381 errors:0 dropped:0 overruns:0 frame:0
           TX packets:31398328 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:2204182806 (2102.0 Mb)  TX bytes:2152206444 (2052.5 Mb)

eth0      Link encap:Ethernet  HWaddr 00:50:FC:82:98:C0
           inet6 addr: fe80::250:fcff:fe82:98c0/64 Scope:Link
           UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:60367057 errors:0 dropped:0 overruns:0 frame:0
           TX packets:60594478 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:3225632715 (3076.2 Mb)  TX bytes:3708982035 (3537.1 Mb)
           Interrupt:15 Base address:0x3000

eth1      Link encap:Ethernet  HWaddr 00:E0:4C:77:11:7E
           inet6 addr: fe80::2e0:4cff:fe77:117e/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:9360518 errors:0 dropped:0 overruns:0 frame:0
           TX packets:14452427 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:2813764457 (2683.4 Mb)  TX bytes:24167614 (23.0 Mb)
           Interrupt:15 Base address:0x6000

eth2      Link encap:Ethernet  HWaddr 00:08:A1:40:47:B9
           inet6 addr: fe80::208:a1ff:fe40:47b9/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:37495044 errors:4 dropped:0 overruns:0 frame:0
           TX packets:30252280 errors:0 dropped:0 overruns:0 carrier:0
           collisions:2028 txqueuelen:1000
           RX bytes:1773202762 (1691.0 Mb)  TX bytes:680023909 (648.5 Mb)
           Interrupt:15 Base address:0xb000

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           inet6 addr: ::1/128 Scope:Host
           UP LOOPBACK RUNNING  MTU:16436  Metric:1
           RX packets:9768387 errors:0 dropped:0 overruns:0 frame:0
           TX packets:9768387 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:1255182345 (1197.0 Mb)  TX bytes:1255182345 (1197.0 Mb)

ppp0      Link encap:Point-to-Point Protocol
           inet addr:165.146.237.92  P-t-P:165.146.192.1
Mask:255.255.255.255
           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
           RX packets:13248 errors:0 dropped:0 overruns:0 frame:0
           TX packets:10917 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:3
           RX bytes:6638205 (6.3 Mb)  TX bytes:1290271 (1.2 Mb)