Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-14-2007, 11:27 AM   #1
LQ Newbie
Registered: Apr 2006
Posts: 16

Rep: Reputation: 0
can't bridge ppp0 interface

I have ubuntu feisty workstation. I access internet through ppp0 interface. Also I access bluetooth-enabled PDA via PAN through bnep0 interface.
I want to share internet connection with PDA. Is it possible to do so bridging these interfaces with brctl?
bnep0 can be added to bridge but on adding ppp0 I get error:
can't add ppp0 to bridge pan0. Invalid argument
Old 07-16-2007, 01:54 AM   #2
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
I'm no guru on bridging, but I don't think you can bridge dissimilar devices.

I think what you want to do is simply forward an ip connection. This involves enabling ip-forwarding in the kernel and providing a default route in the routing table so your PDA can find the internet. It also involves MASQUERADING in the nat table's POSTROUTING chain (using iptables). You will also have to provide your PDA device with the addresses of your ISP's DNS servers.

The routing table is probably set up correctly when you establish the ppp connection. This should also set up /etc/resolv.conf with the correct DNS addresses. You need to get these addresses to you PDA either manually, or by setting up a DHCP server. (Warning: I have no experience with a PDA.)

For the rest you could:

iptables -t nat -A POSTROUTING -o ppp+ -j MASQUERADE
sysctl -w net.ipv4.ip-forward=1
You could add this to your rc.local file, or if you already have a firewall setup, you could merge the iptables command into that.
Old 07-16-2007, 03:07 AM   #3
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971
in theory you can bridge them, but i believe that the standard ppp drivers do not support the correct protocol, i.e. BCP, by default. you would need an updated kernel and pppd patched to provide this.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bridge serial ppp0 to eth0 cluelessnewb Linux - Networking 6 04-05-2007 08:22 PM
How to bridge a ppp0 connection? SentralOrigin Linux - Networking 1 02-03-2007 12:22 PM
ppp0 interface setup zsjoska Linux - Networking 1 11-04-2004 01:01 PM
interface PPP0 walker#1 Linux - Hardware 4 08-28-2004 07:39 AM
No interface ppp0 exists Likosin Linux - Networking 3 08-09-2004 02:49 AM

All times are GMT -5. The time now is 03:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration