I am using Openvpn and Debian on my Respberry Pi to connect to my Netgear R7000 router. The router is working correctly for my windows and ios clients, so doesnt seem to be the problem.
My config file is as follows:
[oconf=]
client
dev tap
proto udp
remote R7000 12974
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
cipher AES-128-CBC
comp-lzo
verb 5
tls-version-min 1.0
log /var/log/openvpn/vpn.log
[/oconf]
The connection is being made, but I'm not getting an IP Address allocated.
When I add the following line to my config file:
ifconfig 10.0.0.100 255.255.255.0
Everything works correctly
I have a workaround, but would be interested to know why I cant get DHCP to give me an IP Address
Raspberry Pi Client not being given IP Address
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Jun 30, 2020 12:41 pm
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Raspberry Pi Client not being given IP Address
Does your client have a DHCP solution installed ?
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Jun 30, 2020 12:41 pm
Re: Raspberry Pi Client not being given IP Address
The Raspberry Pi successfully obtains IP Addresses from other local DHCP servers, so I think that must be the case (unless Openvpn uses a different one?)