Well, that was another morning well spent....
A couple off weeks ago I started experimenting with FreeRADIUS on Ubuntu server (v6.06.2 TLS). Mainly because I needed to test some things for work. So I used VMWare to experiment. The networking part was set-up as Bridged.
Today, I wanted to test with iperf (a tool for network performance testing). So I launched the virtual machine, but there was no network connectivity. ifconfig showed that eth1 didn't received an IP adres.
So I ran every possible test there was;
- restarted the interfaces (/etc/init.d/networking restart)
This resulted in the following;
Listening on LPF/eth1/00:0c:29:68:e3:eb
Sending on LPF/eth1/00:0c:29:68:e3:eb
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
The "DHCPDISCOVER" messages continue about 4 times, then the message:
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
- restarted the DHCP server
- rebooted the virtual machine
- changes the networking to NAT instead of Bridged (this way, connectivity was restored, but not the way I wanted. I needed Bridge-mode)
- Tried to run the virtual machine on OSX (VMWare Fusion), which worked surprisingly.
After this I ran Wireshark on my server to see if DHCP request were coming in.... And you might have guessed; No DHCP request were reaching the DHCP server. So the problem was work PC related.... As a matter of fact, I had the Cisco VPN client running..... Which didn't allow the DHCP request broadcast.
Shutting the VPN client down solved the DHCP problem. After the virtual machine worked I could reinitiate the VPN.
Mental note to myself: do NOT boot/restart the virtual machines when the VPN is up.