LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-08-2011, 04:24 PM   #1
wiewior
LQ Newbie
 
Registered: Aug 2011
Distribution: Gentoo
Posts: 2

Rep: Reputation: Disabled
Question How do I pass traffic from ppp0 to eth0 like a bridge for Virtualization purpose


Hi,

I need some pointers on how to "passthrough" ppp0 traffic to eth0. I do have 4 boxes at home, 2 of them run Windows 7, one laptop running Windows XP and "my baby" an Intel Atom D510M platform running Gentoo.

To make matter more complex I do use the Gentoo box as a Virtualization playground. I called her vixen Now the thing I would like to achieve is sort of "bridge" my ppp0 connection (It's a crappy Huawei E173 USB modem) to a VM running sort of firewall appliance (gentoo-xen-amd64, called it hellgate64). From my ISP I get just one public IP and I want to assign it to eth0 on hellgate64 (eth0 on hellgate is vif1.0 on vixen, bridged).

When I was using different ISP it wasn't an issue, I recieved a router (NanoStation5 + a single public IP) and connected it to the eth0 of vixen, bridged it to vif1.0 (eth0 on hellgate64) and I was happy (everyone was happy, actually).

Now I'm forced to use this USB _thing_. I found myself struggling with it for a week now. I got ppp0 up and running on vixen (google is a good friend indeed) everything was almost OK. Last thing to do was "bridging" the connection which I found myself incompetent to do.

So, Community, please help, I feel quite comfortable with linux, esp. Gentoo, I know my way around and I'm more than happy to learn new things. Should any more info be needed ask

Thank You all in advance.

P.S. Should this thread be posted in Virtualization board, just tell me

Last edited by wiewior; 08-09-2011 at 04:48 AM. Reason: Forgot to add "Post Icon", rephrased title
 
Old 08-09-2011, 11:13 AM   #2
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
You can't, unless it is PPP over ethernet.

At a guess you could route it:
Delete the IP address from ppp0, and add it to the virtual machine. Then add an appropriate static route for that IP address. If you want to send all outgoing traffic via the virtual machine you will need use source routing.

Alternatively connect the modem to the virtual machine at serial or USB levels, VirtualBox can do this, I don't know about Xen.
 
Old 08-09-2011, 12:43 PM   #3
wiewior
LQ Newbie
 
Registered: Aug 2011
Distribution: Gentoo
Posts: 2

Original Poster
Rep: Reputation: Disabled
Unhappy

Hi,

thanks TimothyEBaldwin. Unfortunately, I'm bound to PPP. On the other hand,XEN has the ability to pass USB device/s to the guest operating system. Yet I've experineced serious problems (hard server hang, including hypervisor's crash) after passing the modem device to the VM (which would make a great topic for the Vitualization forum), thus I'm looking for some other solution.

Your answer made my fears come true, namely I have to use routing and thus </thread>
 
  


Reply



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
how can I bridge ppp0 with wifi on ubuntu 9.04 box ? AngelGabriel Linux - Networking 3 03-08-2013 12:16 PM
can't bridge ppp0 interface a550ee Linux - Networking 2 07-16-2007 03:07 AM
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
keeping traffic numbers for ppp0 or eth0 interface sensovision Linux - Networking 7 03-10-2005 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:56 PM.

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