Making my Znyx ZX346Q nic to work
-
I know there are a few threads that have to do with this NIC. It seems that none answer my question, so here it goes.
I am trying to make my old computer in to a router for my house, but it seems that the card is not activating (I have no idea what is going on)
Here is a simple break down of what I am doing.
I have an old HP comp (7 years ish?) it's a Intel Core 2 Duo chip, on an Asus mobo. 2 gig of ddr2 ram. I also installed a wireless card on it and a quad port nic the Znyx ZX346Q. When I run the pfSense software (installed it on my HD) I configure my interfaces as Lan - fxp0 (I am assuming this is the on-board Ethernet adapter) and Wan - dc0 (there are total of 4 dc0-3 so I am pretty sure its the NIC) and I skip the VLAN all together, when all is done pfSense seems to recognize my config and assigns IPs from my modem to the Lan port and a normal 192.168.1.1 address for my Wan port, but when I plug my computer in to the NIC port the computer does not react it shows no connection of any sort not even the 192.168.1.1 to access the router. (as if its not plugged in to anything at all) Is there something I need to do to activate the NIC? as for the chain of equipment, all I have (to set this up) is my Cable internet modem which is hooked to my newly converted/made router which is then connected to my computer through one of the ports on the NIC
-
Just an update…
I ran pciconf -v in the shell to see what i have... it shows all 5 ethernet ports 1 mobo 4 nic, i am using a cross over patch cord to my workstation from the other pc with no results, what i want in the end out of the system is to be able to connect at least 3 comps and some wireless devices. What I have now for connection is Modem ---> pfSense (comp/router), what I want is Modem ---> pfSense (comp/router) ---> Workstation/multiple workstations.
I did verify that fxp0 is mobo ethernet port and dc0-3 are the Nic ports.
-
pfSense seems to recognize my config and assigns IPs from my modem to the Lan port and a normal 192.168.1.1 address for my Wan port
It that a typo or is that really how you have it connected? You would normally exepect the pfSense WAN port to be connected to your cable modem while the LAN port(s) connect to your local client machines.
Since you are seeing nothing happening at all you need to check you have basic connectivity. Are you cables good? At the very least you should see a link LED turn on when you plug in the cable.
Does that NIC have LAN-bypass?Steve
-
Yes, it is a typo.
They wiring is good, I am also using a crossover cable to go from pfsense machine to my workstation. No, the LED's do no light up, except for the WAN port on my machines mobo. Which lights up and seems to be working pretty fine, pings out and all that pretty stuff.
I am honestly not sure about LAN-bypass I have no idea what it is. Think "new guy", I have a very limited knowledge but trying to grasp the concepts.
The only thing I can assume is that either my mobo does not want to work with the NIC or pfsense does not. Either seem to recognize it just fine. I honestly don't want to get a new NIC just yet, untill I am positive that it's not just my mobo.
Also, I am doing this as a fun project, nothing overly complicated in mind. So I want to see if I can make this NIC work, in the worst case I will look in to buying from what was recommended an intel card, which will take a while since im not looking to build a beast, and not too fond of spending too much.
-
I am doing this as a fun project, nothing overly complicated in mind.
Those are the best type of projects. ;)
LAN-bypass is feature that disconnects the actual sockets on card from the NIC chips in order to by-pass a failed piece of hardware. It usually (always?) does this using a series of small relays so it's normally easy to spot on the card. You would see a number of small rectangular objects, the white components in this example:
Looking at the specs of your card it doesn't look like it has by-pass but it would explain you symptoms perfectly which was why I asked.
It doesn't look like a problem with the mobo or with pfSense since the 4 interfaces dc0-3 are showing up no problem. It looks like a more fundamental issue such as broken cables, bad switch etc. Until you see link lights you aren't going to get any connection.Have a look through the boot logs to see if the driver is spitting any errors when it attaches to the card. Specifically if the driver attaches but the cable is not detected the PHY part of the NIC may not be configures correctly.
This document makes interesting reading: http://docs.znyx.com/support/drivers/driverdocs/dc013602.pdf
It appears the card has additional functionality beyond the four interfaces but requires the custom driver to use it. That driver is not part of FreeBSD and therefore pfSense. Perhaps the card has been configured in it's firmware to use port trunking or similar? Pure speculation. Do you know the history of the card?Steve
-
Here's something:
@http://osdir.com/ml/freebsd-questions/2009-01/msg01836.html:I got a ZNYX ZX346Q
and tested it. It seems to work (I did not yet stress
testing). The only problem with the card is, that it doesn't
support media autoselect.That was some time ago but it's an old card so the situation may not have improved. You might have to select a link speed and duplex manually to acheive a link. You can do this in Interfaces: LAN: speed and duplex (advanced button). Or whatever interface(s) you have dc0-3 assigned to.
Steve
-
i do not know the history of the card, i got it of ebay, but i currently have 2 of the same cards and i'm having the same issue with both of them, i do not think i have bad cables, since i made them and tested them (i am a sound n com tech/low volt electrician, so at the very least i know how to make a patch cord or a crossover cable) also i did try different ports on the card.
as for the error messages, the only thing i can see that happens is this:acd0: FAILURE - READ_BIG ILLEGAL REQUEST ASC=0X64 ASCQ = 0X00
that error shows up multiple times in a row
there is also a ZFS WARNING about a recommended minimum kmem size.
as for doing anything manually, i do not even know where to begin. I only know how to set the interfaces manually but not how to set them up.
I appreciate the help.
-
Neither of those warnings are a problem. acd0 is the cd-rom drive which I presume is empty and you are booting from hard disk? ZFS is not used unless you have specially chosen to use it in a custom install (you haven't!).
Ok. So first off you need to prove the hardware. Start by proving your cables especially if you've just made them up for this. If you don't have a cable tester I usually use two devices such as a switch and an access point or two switches.
You should probably also prove the network card operates OK under a different OS. Stick it in a Windows box or boot the pfSense box from a live Linux CD.Once both of those are proved try setting both ends of the connection to 100Mbps full duplex. Importantly you MUST set BOTH ends. If you leave one end set to auto-negotiation it will fail (because the other end is set to manual) and then fall back to default setting, usually 10Mbps half duplex.
Steve
-
i can go ahead n prove that both the cables and the card works in a few min, my concern will be is how do i set both ends to 100mbps full duplex. I would not know how to do so manually
also would this affect my other machine (mac pro) and another thing, at this point im at a loss, do i have to use a crossover cable, or straight through would work? pfsense nic is a 10/100 base and my workstation is 1gbit port.
ill get back in a bit after i see if i can get the 4 port nic to work on my workstation.
EDIT: additional information.
I threw the network card in to my widows machine, as I suspected, it recognizes that it is there but can not find drivers for it, i looked around on the webs, i seem to can not find anything suitable.
-
Maybe try a live Linux CD then to prove the card.
The gigabit NIC in your workstation should take care of the cross-over/straight through selection for you, all gigabit NICs are auto-MDX.
Assume you have dc0 assigned as the LAN interface in pfSense. Go to Interfaces: LAN: in the webgui and next to 'speed and duplex' hit the advanced button. Now from the drop down select '100baseTX full duplex'. Save and apply.
In the Windows workstation the setting is in the network card properties.
Steve
-
Live Linux CD? never done that before, will have to look it up, never used linux before either. as for web gui, well i cant access that, unless i can do so through pfsense box… will have to look at that as well.
This is turning out pretty interesting though, a crush course on different OS'
Also... any particular linux build i should look for? or would any work? and then, if i do use live linux cd, what am i looking for? how do i check the NIC basically.
its seems at this point that it might be easier for me to shell out $100 and get an inter card instead, i might as well do so, i kinda want to see if i can make it work, if only to replace is as soon as i get a new card. or that way ill be able to have 8 ports (not that i would ever need that many).
-
Hmm, that card is older than I thought, Windows drivers are only available for Windows 2000 or NT4. However there is this patch tool which might be a clue:
http://docs.znyx.com/support/drivers/driverdocs/dc012501.pdf
The Win 2K driver might run in WinXP if you still have that.For a live Linux CD just download the latest Ubuntu iso and write it. Boot it and choose 'try Ubuntu' and it will boot to a complete desktop. From there you can test the card and view the logs etc.
Steve
-
Assuming that the card and the cables are fine, how would i make a manual selection on pfsense box to choose 100base full duplex speed? its easy on the windows machine but i have no idea how to do so on pfsense machine.
-
It's possible to do it from the command line:
ifconfig dc0 media 100baseTX mediaopt full-duplex
That setting will be overwritten whenever the box renews it's interfaces for whatever reason though so I suggest you set it via the webgui as I outlined above. If your LAN interface is assigned to fxp0 you should have no problems accessing the webgui.
Steve
-
Ok, I followed the directions on making my fxp0 a LAN connection and was able to acces web gui. There I was able to assign interfaces and was able to change the speed to 100base Base TX full duplex, which seemed to "work", at least now when i plug in to the nic it shows a sign of life, link light turns on and activity light blinks for few seconds. But I can not pass traffic through it and i can not access web gui (invalid IP address, i dont know what i am doing i assigned a 192.168.1.2 for dc0 interface and tried using that), im not sure how to assign my interfaces back or how to configure the rest of the ports to act as LAN interface. I kind of tried to copy the info from the interface that was automatically set, but I am facing an issue where my 192.168.1.1 address is taken and i can not assign it to other interfaces (im not sure what i am supposed to do though)
Basically i have a jumbled mess of interfaces my fxp0 is now LAN1 (mobo nic) and my dc3 is WAN, and I want WAN to be fxp0 and LAN1-4 to be dc0-3 (for simplicity sake) i'm just not sure how to work around the problem and configure interfaces properly. I am not even sure how to explain this. I am sorry if this sounds like nonsense, hopefully I can clear it up.
-
Aha! ;D
Ok well that's a huge step forward, everything else is standard configuration.
When you add a new interface in pfSense, like LAN2, it must be in a different subnet to any existing interfaces. So you could use 192.168.2.1/24. You can't use 192.168.1.2 because it's in the subnet used by LAN.
Secondly when you add new interfaces all traffic to it will be blocked by the firewall by default. The LAN interface comes with a default rule to allow traffic to make things easier but that is an exception.
Go to Firewall: Rules: LAN: in the webgui and look at the default LAN rule. Now go to Firewall: Rules: LAN2: and add similar rule there. If you want to allow all traffic it would be something like:
Protocol: IPv4 any
Source: LAN2 NET
Source port: any
Destination: any
Destination port: anyOnce you are familiar with setting the rules on the interfaces you can reassign the NICs in the order you wish either from the webgui or at the console.
Steve
-
hrmm… i was able to set up and copy the rules and assign the interfaces as i wanted, i do not get the connection or i cant get traffic to pass through the the lan ports, im not sure if im missing something in the rules, or somewhere else. frustrating. I been trying to see if anyone has any instructions on youtube, but all i get are advance settings for the stuff that already works and they are just showing how to finetune or implement other stufff...
i configured it as follows,
fxp - wan - it gets its own IPs from the modem.
dc0 - Lan1 - 192.168.1.1 its automatically set up (rulles and everything) - unable to connect to either internets or the webgui
dc1 - Lan2 - 192.168.2.20 tried to copy rules from Lan1 - no connection (it does have IPV6 assigned to it and so are others)
dc2 - etc.
dc3 - etc.so im not sure, and again i do get a link up lights on all 4 ports on the card...
-
Hmm. OK. So possibly the card is now talking correctly at the hardware level but the driver is not indicating a connection in some way. Can you get back to the webgui via the WAN? You can disable the firewall entirely to allow that using 'pfctl -d' at the console. Check the Status: Interfaces: page. Does it show a load of errors? Does it show a conection?
Are you using DHCP for the client machine on LAN1? Is it working?
Steve
-
i am able to access webgui if i assign fxp0 to lan.
Checking Status:Interfaces window shows 0/0 errors on all ports, all show 0/0 in out packets except dc0 (lan4) it shows in/out packets 112/133 (pass) no errors nothing. all show status 'no carrier', im not sure how to see if it show a connection.as for the DHCP, in the Interfaces:DHCP Leases it shows the IP 192.168.1.130 as online and active and it shows my workstations name. Keep in mind Lan1 is fxp0 port which is my mobo port that was originally known to work (machine was in working order when i started messing with pfsense)
I did run pfctl -d it shows pf disabled, ill try seeing if that changed anything.
I hope this gives you any ideas.
-
all show status 'no carrier', im not sure how to see if it show a connection.
Hmm, well that's not good. Did they have a physical connection when you were looking a this?
If you ssh in and run ifconfig at a the command line you can copy and paste that output here.What did you have connected to dc0 (lan4) that manged to send/receive some traffic?
I forgot earlier that none of the additional interfaces will have DHCP enabled unless you manually set it in Services: DHCP Server: so you would have to use static IP addresses.
Steve