Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

keeping uml and host on separate nets

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
morteoh
n00b
n00b
Posts: 1
Joined: Mon Mar 26, 2007 7:26 pm

keeping uml and host on separate nets

  • Quote

Post by morteoh » Mon Mar 26, 2007 7:53 pm

Hi,

I'm trying to test out UML on my laptop, and I want to have uml on a different net than my host. I currently am using 192.168.1.25 on my host and i want to be using 192.168.0.xxx on my uml guests.

I have been playing around with bridges, and was doing this :

Code: Select all

ifconfig eth0 0.0.0.0 promisc up
brctl addbr br0
brctl addif br0 eth0
brctl setfd br0 0
brctl sethello br0 0
brctl stp br0 off

brctl addbr umlbr0
brctl setfd umlbr0 0
brctl sethello umlbr0 0
brctl stp umlbr0 0
tunctl -u root -t umlc0
ifconfig umlc0 0.0.0.0 promisc up
brctl addif umlbr0 umlc0

ifconfig umlbr0 192.168.0.1 netmask 255.255.255.0
And i'm booting with :

Code: Select all

./uml ubda=rootfs ubdb=swapfs umid=$NAME mem=128M eth0=tuntap,umlc0,00:00:00:00:00:01 con=null con0=null,fd:1 con1=fd:0,fd:1
and my eth0 (on the guest) if confiured with :

Code: Select all

 
ifconfig eth0 192.168.0.2 netmask 255.255.255.0
route add default gw 192.168.0.1
With this setup, I can now ping 192.168.0.1 (umlbr0) and 192.168.1.25 (br0/eth0). But I can't ping 192.168.1.1 (router) or anything else from UML (but it works from the host).

I have tried to enable ip_forward but no luck..

So I'm probably missing something obvious.. Just can't see it :)

Any suggestions?

Thanks!
Morten
Top
GordSki
Guru
Guru
User avatar
Posts: 329
Joined: Mon Oct 18, 2004 7:48 pm
Contact:
Contact GordSki
Website

  • Quote

Post by GordSki » Tue Mar 27, 2007 7:01 pm

I think the problem is that nothing else, other than the host machine, knows how to get to your 192.168.0.x net. Try adding a static route to your router that points traffic for 192.168.0.x to 192.168.1.25. If you do that you might not need the bridge, I'm not sure about that tho.....

G.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic