PfSense on Hyper-V, no network access.
-
I think I have figured it out already. A new world of Linux opens up for me as a Microsoft software enthusiast ;D For others being in the same situation:
1. Connect to your pfSense installation, for example via the Hyper-V Manager and connecting to your instance
2. In the pfSense menu choose option 8: Shell
3. Execute ifconfig to show your network interfaces
4. Execute ifconfig <interface name,="" eg="" de0="">down
5. Execute ifconfig <interface name,="" eg="" de0="">up
6. In case of using DHCP on the interface, execute dhclient <interface name,="" eg="" de0="">, when using a static ip, skip this step.
7. Execute ping <ip>to test connectivity
8. Execute exit when done to return to the pfSense menuWorks like a charm here! Next step is to figure out if I have to do this after each reboot and if so, how to make sure it will be done automatically! :)</ip></interface></interface></interface>
-
And this one is solved as well. To make sure the reset of the interface gets done automatically on reboot, use vi to create a file <whatever_you_like_nospaces>.sh in /usr/local/etc/rc.d and make it contain:
ifconfig <dhcp interface="">down
ifconfig <dhcp interface="">up
dhclient</dhcp></dhcp></whatever_you_like_nospaces> -
I have a patch for /etc/rc.bootup that I put up on a repository at https://rcs.pfsense.org/projects/pfsense/repos/VirtualPC_patches
It is for 2.0, but should work on anything else by manually inserting the changes into /etc/rc.bootup. The patch was made for Virtual PC/Server, which has a 4 interface limit; I don't know what the limit is on Hyper-V. The array there just contains a list of the interfaces to bring up then down, so change it if appropriate.
-
On the couple hyper-v installs I've done I saw the same. The above mentioned hacks to ifconfig down/up the interface does work around it, but it seems it flakes out randomly and has to have that run again on occasion. I ended up upgrading them to 2.0 over 6 months ago and haven't had any problems since, the de driver has a work around for that in FreeBSD 8.
-
@cmb:
On the couple hyper-v installs I've done I saw the same. The above mentioned hacks to ifconfig down/up the interface does work around it, but it seems it flakes out randomly and has to have that run again on occasion. I ended up upgrading them to 2.0 over 6 months ago and haven't had any problems since, the de driver has a work around for that in FreeBSD 8.
I have my setup running for a little over a month now and haven't encountered any problems with the ifdown/ifup workaround. Did you place it in rc.d and not in the bootup folder? After some changes to pfSense through the webinterface, the connection gets reset. If you placed the workaround patch in any other place than rc.d, the workaround won't be applied after the connection reset. That might explain your unexplainable experience. If you place the workaround script in rc.d, it will be applied on a connection reset by pfSense and thus will remain working.
-
I'm getting the same thing right now, it says lan is 192.168.1.1 and wan is 0.0.0.0 I'm pretty sure the nic's are compatible because it works with the liveCD. ifconfig and dhclient don't help, it just lists a bunch of numbers and tells me the dhcp didn't give it an address, reassigning interfaces doesn't do anything either.
-
And did you try any or all of the suggested fixes above and in other threads?
-
spraynpray, first try to manually do an ifconfig down and up from the shell. That should do the trick already. Make sure your WAN side can handle the DHCP request and the DHCP server on the WAN side is not responding only to specific MAC addresses or host names like with some internet providers is the case.
-
spraynpray, first try to manually do an ifconfig down and up from the shell. That should do the trick already. Make sure your WAN side can handle the DHCP request and the DHCP server on the WAN side is not responding only to specific MAC addresses or host names like with some internet providers is the case.
Just called rogers, the tech said any MAC address would work, he gave me an example of any address letters a-f and numbers. I tried to set it on 'static' in hyperV with all the other options left on default, still didn't work.
Right now, pfsense is showing me:
LAN (intel 100ct) - 192.168.1.1 when it worked in liveCD, this was 192.168.1.199
WAN (de1 realtek) - 0.0.0.0 <- this is what I'm try to figure out how to get working… -
spraynpray, are you absolutely sure you're using Legacy Network Adapters for all your NICs attached to your pfSense Virtual Server instance?
-
With the regular connection, pfSense wouldn't even show de0/de1 and ask me to install a network connection, so yes I'm definitely using legacy.