Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tunnel adapter
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JROCK2004
Guru
Guru


Joined: 02 Mar 2004
Posts: 450
Location: PA

PostPosted: Fri Mar 08, 2013 9:55 pm    Post subject: Tunnel adapter Reply with quote

Ok so I finally got my tunneling down in Gentoo, but the problem I have is when I reboot I am not getting online. I have to do the following everytime. Any ideas on how I can fix this?


Code:

tunctl -d tap0
tunctl -b
brctl addifbr0 tap0



Here is my /etc/conf.d/net

Code:

config_br0="dhcp"
bridge_br0="dhcp"
config_tap0="dhcp"


Thanks
Back to top
View user's profile Send private message
syn0ptik
Apprentice
Apprentice


Joined: 09 Jan 2013
Posts: 265

PostPosted: Sat Mar 09, 2013 12:11 am    Post subject: Reply with quote

I think so interface br0 shouldnt' be with dhcp, just end interfaces.
Back to top
View user's profile Send private message
Mad Merlin
Veteran
Veteran


Joined: 09 May 2005
Posts: 1155

PostPosted: Sat Mar 09, 2013 12:53 am    Post subject: Reply with quote

Two things:

1) You need your tap to be part of your bridge.
2) You can't run a dhcp client on both the tap and the bridge, run it only on the bridge.

Like this:

Code:

tuntap_tap0="tap"
config_tap0="null"

config_eth0="null"

rc_need_br0="net.tap0 net.eth0"
bridge_br0="eth0 tap0"
config_br0="dhcp"
brctl_br0="setfd 0
sethello 0"


Also, make sure all of /etc/init.d/net.{tap0,br0,eth0} exist and are all symlinks to net.lo.
_________________
Game! - Where the stick is mightier than the sword!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum