LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-13-2011, 09:42 AM   #1
scam
Member
 
Registered: Jun 2011
Location: UK
Distribution: Slackware 13.1, Slackware 13.37
Posts: 92

Rep: Reputation: Disabled
Bridging with lxc-containers problem.


Hi all, I need some help with bridging my internal interface eth0, my network is like this...

ppp0 ..dial-up modem
eth0 ..my internal network 192.168.0.1

My firewall works fine normally, my headless machine (server) 192.168.0.2, can ping out to the net and I can log into it from my work station. I decided to try lxc-containers, which I managed to setup and get it up and running, just my problem is getting the container to ping out to the net. I followed the tutorial from Ponce's blog but I can't seem to get my bridge working for my container. My desktop is acting as the gateway and I was trying to setup the bridge for the lxc-container on (eth0 192.168.0.1) which I keep the ip static.

http://slackware.ponce.cc/blog/
 
Old 09-13-2011, 01:06 PM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,399

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
maybe you should talk about this there I hope moderators will be tolerant

I think you opted for the solution "containers on the same network segment as the host" as you have used 192.168.0.2 also for the container address, but in the example the network has a separate gateway that leads to the interwebs, while in your case you got an additional interface on the same machine, ppp0.

can you please post the output of ifconfig typed as root on your desktop (hide with asterisks your ppp0 ip address) and the /etc/rc.d/rc.inet1.conf file of the container (not of the "desktop")? I seem to understand that the container is hosted on the same machine (the "desktop") too, correct me if I'm wrong

Last edited by ponce; 09-13-2011 at 01:33 PM.
 
Old 09-14-2011, 03:18 AM   #3
scam
Member
 
Registered: Jun 2011
Location: UK
Distribution: Slackware 13.1, Slackware 13.37
Posts: 92

Original Poster
Rep: Reputation: Disabled
I must have done something wrong setting up the bridge because I set it up again this morning and it works fine . Your blog was very helpful Ponce, just my
mistake setting up the bridge. Oh one question, if I put the packages in
/var/cache/lxc/slackware/cache-13.37-i486/ from my slackware dvd, I wouldn't need to download them off the slackware mirror?
 
Old 09-14-2011, 04:18 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,399

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
yes, but, as you may have seen, it's just a bunch of megs for the default minimal install (thanks to vbatts).
 
Old 09-14-2011, 04:52 AM   #5
scam
Member
 
Registered: Jun 2011
Location: UK
Distribution: Slackware 13.1, Slackware 13.37
Posts: 92

Original Poster
Rep: Reputation: Disabled
If it's just a bunch of megs i'll leave it to download from slackware mirror then.
 
  


Reply


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
bonding + bridge + lxc = virtual host routing problem rysic Linux - Networking 0 08-07-2011 02:18 PM
Problem setting up LXC containers wolf0403 Linux - Server 0 05-23-2011 05:11 AM
LXer: How To Install OpenQRM 4.7 With LXC Containers In Debian Squeeze/Lenny LXer Syndicated Linux News 0 10-22-2010 02:50 PM
vzdump equivalent for lxc containers bigaddo81 Linux - Virtualization and Cloud 0 06-06-2010 08:28 PM
VMWare's bridging vs Window's bridging - routing is messed up when Windows bridging brenan99 General 0 05-04-2008 10:24 PM


All times are GMT -5. The time now is 02:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration