Forums

Skip to content

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

bridging and tunneling not working ..[SOLVED]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
upengan78
l33t
l33t
Posts: 719
Joined: Wed Jun 27, 2007 7:48 pm
Location: IL

bridging and tunneling not working ..[SOLVED]

  • Quote

Post by upengan78 » Tue Jun 24, 2008 9:15 pm

Hi,

I have eth0 as primary interface. I want my virtual box (windows ) to use vbox0 interface on gentoo. Also I would like windows in virtualbox receive DHCP IP after configuring virtual box windows to use vbox0

following is /etc/conf.d/net
config_br0=( "dhcp" )
config_eth0=( "null" )
config_vbox0=( "null" )
tuntap_vbox0="tap"
dhcpcd_br0="-t 20"
bridge_br0="eth0"
depend_br0()
{
need net.eth0
need net.vbox0
}
brctl_br0=( "setfd 0" "sethello 0" "stp on" )
for some reason this set up is not working, br0 never gets an IP from dhcp server as it should.

I have the links in /etc/init.d for net.eth0/net.vbox0/net.br0 poiniting to net.lo and added for default run-level.

am I missing something ?

Thanks
Last edited by upengan78 on Thu Jun 26, 2008 1:22 pm, edited 1 time in total.
Top
jtaylor72
Apprentice
Apprentice
User avatar
Posts: 197
Joined: Sun Feb 01, 2004 6:02 pm
Location: "the can", WA

  • Quote

Post by jtaylor72 » Wed Jun 25, 2008 2:21 am

I have mine working. Here is my /etc/conf.d/net

Code: Select all

config_eth0=( "null" )
config_vbox0=( "null" )
tuntap_vbox0="tap"
dhcp_eth0="nodns"
dhcp_br0="nodns"
dhcp_vbox0="nodns"
bridge_br0="eth0 vbox0"
config_br0=( "dhcp" )
routes_br0=( "default via 192.168.0.1" )
depend_br0() {
        need net.eth0
        need net.vbox0
        }
brctl_br0=( "setfd 0" )
I also have to run

Code: Select all

tunctl -t  vbox0 -u <user>
before I launch virtualbox.

if I look at ifconfig, it shows:

Code: Select all

# ifconfig 
br0       Link encap:Ethernet  HWaddr 00:02:B3:D0:F8:2C  
          inet addr:192.168.0.102  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::202:b3ff:fed0:f82c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:55432 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37470 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:34224166 (32.6 Mb)  TX bytes:6427343 (6.1 Mb)

eth0      Link encap:Ethernet  HWaddr 00:02:B3:D0:F8:2C  
          inet6 addr: fe80::202:b3ff:fed0:f82c/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:7540603 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4095858 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3642356006 (3473.6 Mb)  TX bytes:226867011 (216.3 Mb)

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:4731 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4731 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1200805 (1.1 Mb)  TX bytes:1200805 (1.1 Mb)

vbox0     Link encap:Ethernet  HWaddr 00:FF:DE:31:F3:5C  
          inet6 addr: fe80::2ff:deff:fe31:f35c/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:4045317 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7484129 errors:0 dropped:3936 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:243071491 (231.8 Mb)  TX bytes:3593197666 (3426.7 Mb)
All the networking works from the windows in virtualbox.
Top
upengan78
l33t
l33t
Posts: 719
Joined: Wed Jun 27, 2007 7:48 pm
Location: IL

  • Quote

Post by upengan78 » Wed Jun 25, 2008 2:28 am

:) Thanks for complete config, I will check here and let you know !

Thanks again !
Top
upengan78
l33t
l33t
Posts: 719
Joined: Wed Jun 27, 2007 7:48 pm
Location: IL

  • Quote

Post by upengan78 » Wed Jun 25, 2008 1:25 pm

I tried your config for /etc/conf.d/net and br0 did receive an IP address from dhcp server but while I saw it receving an address and using an IP as a gateway I also did see following line while system is booting..

Code: Select all

RNETLINK ANSWERS - FILE EXISTS  [!!]
is it related ? please advise

Thanks much.
Top
jtaylor72
Apprentice
Apprentice
User avatar
Posts: 197
Joined: Sun Feb 01, 2004 6:02 pm
Location: "the can", WA

  • Quote

Post by jtaylor72 » Thu Jun 26, 2008 5:37 am

It is from this line:

Code: Select all

routes_br0=( "default via 192.168.0.1" ) 
I was actually getting a similar error and not noticing it:

Code: Select all

SIOCADDRT: File exists
I removed the routes line and restarted the network and they all still worked just fine.
Top
upengan78
l33t
l33t
Posts: 719
Joined: Wed Jun 27, 2007 7:48 pm
Location: IL

  • Quote

Post by upengan78 » Thu Jun 26, 2008 1:21 pm

Thanks much
Top
Post Reply

6 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