Author Topic: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP  (Read 16644 times)

satburn

  • Full Member
  • *****
  • Posts: 21
    • View Profile
Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« on: April 06, 2015, 07:50:16 PM »
I am trying to get WANOS up and running on a Juniper WXC 590.  So far, after some fiddling, I am able to get it to boot and initialize the 'Management' interface on the Juniper.  The primary card appears to be stuck in bypass mode.  It is represented by lan0 in the attached images.  Wan0 is the 'Management' interface on the front of the appliance.

The main NIC is a Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP and as you can see in the pics, there appears to be a spot on the board where a 'Bypass Mode' switch could have been soldered.  Is this NIC fully supported by WANOS?  Or would I need to figure out a way to bypass it or replace it with one that is?

Thanks!

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 625
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #1 on: April 07, 2015, 12:34:06 AM »
It appears that the card is not detected / driver not supported. Perhaps confirm all interfaces with 'ifconfig -a' to see if its a complete driver issue or just a case of switching the bypass on/off.

Silicom supply Linux drivers via their online support. Its potentially something we can look into.
CCIE RS, CCIE SP, Mnet&sys

Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs

satburn

  • Full Member
  • *****
  • Posts: 21
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #2 on: April 07, 2015, 01:15:15 PM »
tc@wanos:~$ ifconfig -a
dummy0    Link encap:Ethernet  HWaddr 8E:01:98:C1:C8:C8
          BROADCAST NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ip_vti0   Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan0      Link encap:Ethernet  HWaddr 00:30:48:69:10:B9
          UP BROADCAST NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:286 errors:0 dropped:0 overruns:0 frame:0
          TX packets:286 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:18047 (17.6 KiB)  TX bytes:18047 (17.6 KiB)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:192.168.6.200  P-t-P:192.168.6.200  Mask:255.255.255.0
          UP POINTOPOINT RUNNING NOARP PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:411 errors:0 dropped:0 overruns:0 frame:0
          TX packets:813 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:36400 (35.5 KiB)  TX bytes:104054 (101.6 KiB)

tunl0     Link encap:UNSPEC  HWaddr 00-00-00-00-FF-00-00-00-00-00-00-00-00-00-00-00
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wan0      Link encap:Ethernet  HWaddr 00:30:48:69:10:B8
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:1264 errors:0 dropped:0 overruns:0 frame:0
          TX packets:817 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:151550 (147.9 KiB)  TX bytes:115988 (113.2 KiB)

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 625
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #3 on: April 07, 2015, 01:43:40 PM »
It seems that the card is being detected. What is interesting is that lan0 and wan0 are on the same MAC range: 00:30:48:69:10:B8 and 00:30:48:69:10:B9 which is normally the case with dual port cards. Are you 100% sure wan0 is binding on the management port?

When connecting both cables to the dual port card what happens?

Are the silicom card mac addresses visible on the physical card?

Lastly, I don't see any jumpers to switch the bypass as with the Expand Accelerator, but just maybe its possible to set it in the bios?
« Last Edit: April 07, 2015, 02:11:24 PM by ahenning »
CCIE RS, CCIE SP, Mnet&sys

Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs

satburn

  • Full Member
  • *****
  • Posts: 21
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #4 on: April 07, 2015, 03:36:17 PM »
It seems that the card is being detected. What is interesting is that lan0 and wan0 are on the same MAC range: 00:30:48:69:10:B8 and 00:30:48:69:10:B9 which is normally the case with dual port cards. Are you 100% sure wan0 is binding on the management port?

When connecting both cables to the dual port card what happens?

Are the silicom card mac addresses visible on the physical card?

Lastly, I don't see any jumpers to switch the bypass as with the Expand Accelerator, but just maybe its possible to set it in the bios?

Yes, I hadn't noticed the similar mac addresses on the one interface, but after a second look I think I see why.  It appears the system main board has the potential for two nics.  As you can see in the one pic by LAN1 and LAN2, but a second port wasn't added to the board.  How's that for confusing?

I've added some more pics for clarification, but to answer your questions:

Yes, I'm sure wan0 is bound to the management port, I can unplug both cables from the Silicom card and still access the device.

Connecting both cables (as in the pic) does nothing.  It still shows it is in bypass.  If I hook another computer up to the empty switch connected to the Remote Port of the nic, I can get an IP, network access, etc. from that computer.

Yes, both interfaces have MAC address stickers.  See attached pics...

It could be possible I suppose, unfortunately this board has no VGA port soldered to it, but one could be added so I could see.


ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 625
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #5 on: April 07, 2015, 04:01:05 PM »
Oh ok, yes, looks like Linux is picking up that second NIC, although there is no RJ45 port connected to the motherboard. I guess they did not enable it to 'avoid' confusion.

It seems then my previous post was wrong and the Silicom card is not detected. It seems to be a driver issue then. I have contacted silicom-usa to request the drivers. Lets see if they have drivers available and its simple to get going.
CCIE RS, CCIE SP, Mnet&sys

Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs

satburn

  • Full Member
  • *****
  • Posts: 21
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #6 on: April 07, 2015, 06:00:36 PM »
That would be fantastic.  I did go to their website and have them in a .zip... too large for upload however.

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 625
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #7 on: April 07, 2015, 06:25:07 PM »
Would it be possible to provide remote access to the WXC 590 to see if we can get the bypass card up?
CCIE RS, CCIE SP, Mnet&sys

Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs

satburn

  • Full Member
  • *****
  • Posts: 21
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #8 on: April 07, 2015, 07:41:31 PM »
If you need to I think that could be arranged... we could do a webex and let you SSH in.  Thanks!

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 625
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #9 on: April 08, 2015, 12:04:31 AM »
Ok some partial success. The drivers are ok on the older kernels, which was used in v.1.4.1.

Here is a possible way to get the card going:

Download and extract the VHD version of v.2.0.5 (It uses the older kernel)
Convert the VHD to RAW disk image format. It should create a 64GB disk image.
Write the RAW image to HDD. It will take a long time with DD and Win Disk Imager, so if you have something better use that.
Once the system is up and running, download the bypass e1000bp.ko driver.
Save it in /tce/packages/click/
Edit /opt/bootsync.sh and add the following lines just before the bootlocal line:



install -D -m 644 /mnt/sda1/tce/packages/click/e1000bp.ko /lib/modules/3.0.21-tinycore/kernel/drivers/net/e1000bp/e1000bp.ko
insmod /mnt/sda1/tce/packages/click/e1000bp.ko
modprobe e1000bp BPoff=1



After a reboot or entering these commands in manually as root (sudo), if 'ifconfig -a' then produces some additional interfaces then we are in luck and can then check that the bypass is off and then edit /tce/etc/mactab with the correct lan0/wan0 addresses.
« Last Edit: April 19, 2016, 08:36:37 AM by ahenning »
CCIE RS, CCIE SP, Mnet&sys

Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs

satburn

  • Full Member
  • *****
  • Posts: 21
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #10 on: April 08, 2015, 02:28:56 PM »
Ok, let me give it a try!  I'll report back and let you know if we can get this thing a going.

satburn

  • Full Member
  • *****
  • Posts: 21
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #11 on: April 08, 2015, 08:29:09 PM »
Download and extract the VHD version of v.2.0.5 (It uses the older kernel)
Convert the VHD to RAW disk image format. It should create a 64GB disk image.

I'm getting about an 8GB raw image file, is that correct?  I'm using qemu-img for Windows to do it.

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 625
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #12 on: April 08, 2015, 09:01:34 PM »
Not familiar with qemu-img, but I think it converted to a sparse raw image. Not sure if it will boot. Taking a look into it.

Edit: Writing the sparse raw disk created by qemu-img to HDD did not work.
« Last Edit: April 09, 2015, 03:13:59 PM by ahenning »
CCIE RS, CCIE SP, Mnet&sys

Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs

satburn

  • Full Member
  • *****
  • Posts: 21
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #13 on: April 09, 2015, 11:10:12 PM »
Not familiar with qemu-img, but I think it converted to a sparse raw image. Not sure if it will boot. Taking a look into it.

Edit: Writing the sparse raw disk created by qemu-img to HDD did not work.

What do you recommend?

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 625
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #14 on: April 09, 2015, 11:24:55 PM »
An image will be ready tomorrow pre-loaded with the silicom e1000bp driver, so the process will be as per normal: write to drive, boot, check interfaces.

It's worth a shot, if the card and bypass toggling works then we'll get a couple to experiment with in the lab and make it officially supported.
CCIE RS, CCIE SP, Mnet&sys

Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs