Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
yilduz
Sep 17, 2014
I've been having this trouble for a while. I've tried several times to get it to work, and I cannot find the solution online (and I've even followed several video tutorials on Youtube step-by-step) so I figured I would need to ask. I have a box running ESXi, and on it I have a few VMs. They all use the same on-board NIC, but I also have a separate 2-port NIC in the computer as well. I initially got it because I wanted to try playing with pfsense. Of the 2-port NIC, one will go to my cable modem (Cisco DPC3008) and the other will go to an 8-port switch for other computers on the network.

The two ports are, according to vSphere:
vmnic1 - WAN
vmnic2 - LAN

and according to pfsense:
WAN -> em0 -> (I never get an ip address here)
LAN -> em1 -> 192.168.1.254/24 (This is statically set)

I cannot ping 192.168.1.254 from any computer on the network, and pfsense cannot ping anything else including other VMs. vSphere shows that the port I'm using for WAN does get the ip address when plugged into the modem, but pfsense doesn't get that IP address on the port. I really don't know what to try next. It kind of seems as though the NIC ports are not being properly associated with the interfaces within pfsense. Does that sound right? How do I fix it?

Thank you in advance for any help/advice.

Adbot
ADBOT LOVES YOU

Dilbert As FUCK
Sep 8, 2007

by Cowcaster
Pillbug
Yeah set the vSwitch into promiscuous mode, also you may want to flip the vNics binding if you haven't already.

yilduz
Sep 17, 2014
By flipping the vnic bindings, you mean set LAN to em0 and WAN to em1? If so, I have flipped back and forth several times.
I just enabled promiscuous mode, but the result is the same.

fatman1683
Jan 8, 2004
.
Ok so basically it needs to work like this:

Cable modem -> NIC1 -> vSwitch 1 -> pfSense VM WAN interface

Then:

pfSense VM LAN interface -> vSwitch 2 -> NIC2 -> 8-port switch


What you have here is essentially two separate layer 2 networks, being bridged by the pfSense VM. ESX requires a vSwitch for each layer 2 network you want to use, and treats each vSwitch and the interfaces on it like a VLAN.

So you create a vSwitch with your WAN NIC and one of the pfSense VM's NICs, then a second vSwitch with your LAN NIC and the other NIC in the pfSense VM. You should then be able to tell pfSense which is which, and it will bridge the two layer 2 networks.

Make sense?


edit: You can assign the other VMs' vNICs to the second vSwitch, you don't have to have a separate network for that. It's all on layer 2 with the physical switch and the LAN side of the router, so you're fine. Saves you a switchport.

yilduz
Sep 17, 2014
That is how I've been trying to set it up. Here is a screenshot from vSphere.

fatman1683
Jan 8, 2004
.
Your test machine should not be on vSwitch 1, unless you want it to have direct access to the internet (DMZ). If you want it to be behind the firewall and receive an IP, it needs to be on vSwitch 2.

edit: Can you get a screenshot of the settings page for the pfSense VM?

fatman1683 fucked around with this message at 20:13 on Mar 1, 2015

yilduz
Sep 17, 2014
The test machine is not going to be permanent. I only created it to check some things. It will probably be deleted within the next day or so. It isn't even powered on right now.

Here is the settings page from vSphere:


I don't think this would be too valuable, but just in case:

fatman1683
Jan 8, 2004
.
v0v Only thing I can think of then is that you've got the interface misassigned/misconfigured in pfSense. Check the MACs of your interfaces in pfSense against the MACs in the settings page.

yilduz
Sep 17, 2014
I just verified the MAC addresses, and they are the same in pfsense and vSphere.

I'm extremely confused.

fatman1683
Jan 8, 2004
.
Just for a giggle, try setting your LAN interface in pfSense to DHCP and see what happens.

yilduz
Sep 17, 2014
The internal side still works, it just changed my ip address to 192.168.1.24.
Nothing else is different.

fatman1683
Jan 8, 2004
.
Sorry, I'm out of ideas. I don't know pfSense's internal configuration all that well.

I'd suggest going over the config docs and checking every setting, or maybe just reinstalling the VM with a fresh image.

yilduz
Sep 17, 2014
I appreciate all of your help.

I've reinstalled a handful of times in the past few days from different images. It's always the same issue.

I just found something interesting, though. Apparently Realtek NICs are not supported in ESXi 5.5. However, the issue that people seem to have is that the NIC won't even appear, mine does (they've been able to resolve this with a new driver, which I just installed for the hell of it). Also, the onboard NIC in the motherboard has the exact same LAN chipset and that is working perfectly.

~ # esxcli network nic list
Name PCI Device Driver Link Speed Duplex MAC Address MTU Description
------ ------------- ------ ---- ----- ------ ----------------- ---- -------------------------------------
vmnic0 0000:005:00.0 r8168 Up 100 Full 44:8a:5b:8b:ad:cd 1500 Realtek Realtek 8168 Gigabit Ethernet
vmnic1 0000:008:00.0 r8168 Down 0 Half 00:13:3b:0f:69:50 1500 Realtek Realtek 8168 Gigabit Ethernet
vmnic2 0000:00a:00.0 r8168 Up 100 Full 00:13:3b:0f:69:51 1500 Realtek Realtek 8168 Gigabit Ethernet


~ # ethtool -i vmnic0
driver: r8168
version: 8.013.00-NAPI
firmware-version:
bus-info: 0000:05:00.0
~ # ethtool -i vmnic1
driver: r8168
version: 8.013.00-NAPI
firmware-version:
bus-info: 0000:08:00.0
~ # ethtool -i vmnic2
driver: r8168
version: 8.013.00-NAPI
firmware-version:
bus-info: 0000:0a:00.0

fatman1683
Jan 8, 2004
.
Yeah I've never had very good luck with Realtek NICs in ESX/ESXi.

A dual-port Intel adapter is cheap and you'd probably have better luck.

fatman1683
Jan 8, 2004
.
Something just occurred to me, does the (DHCP) on the WAN interface mean that it's a DHCP client, or a DHCP server?

adorai
Nov 2, 2002

10/27/04 Never forget
Grimey Drawer
1) run a tcpdump on the wan interface to see if you are seeing any network traffic.
2) if you have had anything else plugged into that cisco cable modem, power cycle it.

yilduz
Sep 17, 2014
The DHCP is saying that it is a DHCP client. I don't think I'm able to set the WAN port as a DHCP server. I can set the LAN port as a DHCP server, but right now it is not set that way. When I set the LAN port to be a DHCP client, the "DHCP" appears the same way it is on the WAN interface.

When I look at the packet capture for the WAN port, it shows a ton of ARP requests coming from various Comcast IPs. I've never looked at a packet capture from the WAN port on something like this (a big reason for setting up a pfsense machine is as a learning experience), but I'm kind of surprised/confused by what I see. I'll paste a small portion of it below. As for power cycling, I've done it many times throughout my troubleshooting.

code:
19:15:09.304841 ARP, Request who-has 96.210.222.217 tell 96.210.220.1, length 46
19:15:09.456679 ARP, Request who-has 67.161.222.183 tell 67.161.222.1, length 46
19:15:09.641392 ARP, Request who-has 73.110.179.239 tell 73.110.178.1, length 46
19:15:09.925780 ARP, Request who-has 98.202.200.236 tell 98.202.192.1, length 46
19:15:09.957994 ARP, Request who-has 73.110.128.176 tell 73.110.128.1, length 46
19:15:10.066471 ARP, Request who-has 73.110.179.15 tell 73.110.178.1, length 46
19:15:10.179217 ARP, Request who-has 174.52.123.40 tell 174.52.122.1, length 46
19:15:10.341855 ARP, Request who-has 73.110.178.100 tell 73.110.178.1, length 46
19:15:10.341859 ARP, Request who-has 174.52.123.187 tell 174.52.122.1, length 46
19:15:10.352509 ARP, Request who-has 96.210.223.128 tell 96.210.220.1, length 46
19:15:10.537092 ARP, Request who-has 174.52.123.165 tell 174.52.122.1, length 46
19:15:10.638744 ARP, Request who-has 24.10.190.71 tell 24.10.188.1, length 46
19:15:10.638754 ARP, Request who-has 73.110.179.24 tell 73.110.178.1, length 46
19:15:10.754276 ARP, Request who-has 73.110.129.5 tell 73.110.128.1, length 46
19:15:10.837424 ARP, Request who-has 67.186.249.81 tell 67.186.248.1, length 46
19:15:10.837434 ARP, Request who-has 174.52.65.57 tell 174.52.64.1, length 46
19:15:10.904195 ARP, Request who-has 174.52.123.72 tell 174.52.122.1, length 46
19:15:11.175960 ARP, Request who-has 73.110.178.171 tell 73.110.178.1, length 46
19:15:11.254096 ARP, Request who-has 73.110.129.187 tell 73.110.128.1, length 46
19:15:11.329615 ARP, Request who-has 73.110.179.126 tell 73.110.178.1, length 46
19:15:11.329619 ARP, Request who-has 174.52.122.40 tell 174.52.122.1, length 46
19:15:11.404435 ARP, Request who-has 98.202.207.229 tell 98.202.192.1, length 46
19:15:11.545115 ARP, Request who-has 174.52.64.202 tell 174.52.64.1, length 46
19:15:11.545119 ARP, Request who-has 50.160.102.149 tell 50.160.102.1, length 46

fatman1683
Jan 8, 2004
.

yilduz posted:

The DHCP is saying that it is a DHCP client. I don't think I'm able to set the WAN port as a DHCP server. I can set the LAN port as a DHCP server, but right now it is not set that way. When I set the LAN port to be a DHCP client, the "DHCP" appears the same way it is on the WAN interface.

So when you set the LAN interface to be a DHCP client, what IP address does it receive?

Also, I think having two machines on that first vSwitch might've broken something on the ISP end. You're only allowed one IP, but if you had both the pfSense VM and the test VM on at the same time you would've been requesting two. Might explain the ARP flood.

Nulldevice
Jun 17, 2006
Toilet Rascal
Just a thought, but I've noticed that with several ISPs that when you switch your WAN interface to a new device, you have to call them to release the DHCP lease to the old device first, otherwise you will not receive a new lease to the new device. Try giving them a call and see about that. It could be something that simple.

yilduz
Sep 17, 2014

fatman1683 posted:

So when you set the LAN interface to be a DHCP client, what IP address does it receive?

Also, I think having two machines on that first vSwitch might've broken something on the ISP end. You're only allowed one IP, but if you had both the pfSense VM and the test VM on at the same time you would've been requesting two. Might explain the ARP flood.

When I set it to DHCP, it gave me the ip address 192.168.1.24. I have a Windows Server VM acting as a DHCP server and I told it to hand out dynamic addresses starting at 192.168.1.20.

The test machine wasn't originally there. I created it yesterday because of all this stuff so I'm confident that it isn't causing the problem. It hasn't even been powered on most of the time. I took it off that vSwitch this morning and I still have the same issue.

Nulldevice posted:

Just a thought, but I've noticed that with several ISPs that when you switch your WAN interface to a new device, you have to call them to release the DHCP lease to the old device first, otherwise you will not receive a new lease to the new device. Try giving them a call and see about that. It could be something that simple.
I wouldn't put it past Comcast to do something stupid like that. But before I spend several hours on the phone with those morons for a simple task, I'll test it by plugging in a couple of laptops directly to the modem after work and see what happens. I'll try some different things to see if I might be doing something wrong, and how I most easily get a new IP address when directly plugged into a different device. Thank you.

Adbot
ADBOT LOVES YOU

Bob Morales
Aug 18, 2006


Just wear the fucking mask, Bob

I don't care how many people I probably infected with COVID-19 while refusing to wear a mask, my comfort is far more important than the health and safety of everyone around me!

yilduz posted:

I wouldn't put it past Comcast to do something stupid like that. But before I spend several hours on the phone with those morons for a simple task, I'll test it by plugging in a couple of laptops directly to the modem after work and see what happens. I'll try some different things to see if I might be doing something wrong, and how I most easily get a new IP address when directly plugged into a different device. Thank you.

There's a field where you can spoof the WAN interface MAC to whatever your old router's MAC address is/was

  • Locked thread