Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
running dhcp for tap iface
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
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5387

PostPosted: Sat Dec 14, 2013 5:09 pm    Post subject: running dhcp for tap iface Reply with quote

hello all,

I want to acquire an ip for a tap iface using dhcp, is there a way to do that?

Thanks.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6752
Location: Blighty

PostPosted: Sat Dec 14, 2013 7:44 pm    Post subject: Reply with quote

A TAP interface is like a normal Ethernet interface, so just run your chosen DHCP client of choice.

Code:
dhcpcd tap0


Or hook it up via the Gentoo init scripts.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5387

PostPosted: Mon Dec 16, 2013 9:16 am    Post subject: Reply with quote

UberLord wrote:
A TAP interface is like a normal Ethernet interface, so just run your chosen DHCP client of choice.

Code:
dhcpcd tap0


Or hook it up via the Gentoo init scripts.


tried both, I get carrier timeout.

is there anyway to debug it?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6752
Location: Blighty

PostPosted: Mon Dec 16, 2013 11:02 am    Post subject: Reply with quote

If the carrier is timing out, it means that something is wrong with the TAP link.
While I'm happy to help debugging any dhcpcd issues I can't really help with TAP (assuming OpenVPN) itself.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5387

PostPosted: Mon Dec 16, 2013 12:11 pm    Post subject: Reply with quote

UberLord wrote:
If the carrier is timing out, it means that something is wrong with the TAP link.
While I'm happy to help debugging any dhcpcd issues I can't really help with TAP (assuming OpenVPN) itself.


I'm not using openvpn, it is a simple bridge with 3 tap ifaces.

can you maybe provide some tips?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6752
Location: Blighty

PostPosted: Mon Dec 16, 2013 12:21 pm    Post subject: Reply with quote

Not really. I don't use Linux much aside from testing some dhcpcd changes - I use NetBSD these days.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5387

PostPosted: Mon Dec 16, 2013 1:29 pm    Post subject: Reply with quote

UberLord wrote:
Not really. I don't use Linux much aside from testing some dhcpcd changes - I use NetBSD these days.


I see, thanks anyway.

does anyone has an insight?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
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