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

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 629
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #15 on: April 11, 2015, 02:32:21 AM »
Preloaded Silicom PxGxBP driver image. Extracted its a bit large at 64GB and will take +-45 min to write to hdd depending on method used.

Link: "dead link"

« Last Edit: February 04, 2016, 01:24:05 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 #16 on: April 14, 2015, 05:21:57 PM »
We're close!

Got the image installed and it does see the network interface now.  See attached.  How do I toggle bypass on the card?  It is loading up in bypass mode.

tc@wanos:~$ ifconfig -a
dummy0    Link encap:Ethernet  HWaddr 4E:2C:3F:0F:CE:34
          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)

eth2      Link encap:Ethernet  HWaddr 00:E0:ED:0A:95:E8
          BROADCAST 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)

eth3      Link encap:Ethernet  HWaddr 00:E0:ED:0A:95:E9
          BROADCAST 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)

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:16436  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)

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:73 errors:0 dropped:0 overruns:0 frame:0
          TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:10555 (10.3 KiB)  TX bytes:11763 (11.4 KiB)

wan0      Link encap:Ethernet  HWaddr 00:30:48:69:10:B8
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:158 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:30946 (30.2 KiB)  TX bytes:12981 (12.6 KiB)


Thanks!



ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 629
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #17 on: April 14, 2015, 07:40:28 PM »
Ok great!

We need to do two things:

1) Edit the /tce/etc/mactab file to reflect the silicom card macs. Steps here to change interfaces

2) To load the card out of bypass mode edit /opt/bootsync.sh and change the modprobe line to read
modprobe e1000bp BPoff=1


Please also test if this command toggles the bypass on/off manually (difficult to test without a card, but I think it should be bypass_eth0):

sudo echo "off" > /proc/net/bypass/bypass_wan0/bypass
sudo echo "on" > /proc/net/bypass/bypass_wan0/bypass



Edit: changed bypass_eth0 to bypass_wan0 for future reference
« Last Edit: April 15, 2015, 06:59:48 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 #18 on: April 14, 2015, 09:55:18 PM »
Edited the mactab and bootsync.sh files... restarted... card was in bypass, no connection.  pulled drive and changed mactab back to other interface... reinstalled into Juniper and connected again. 

Ran the bypass on/off command:
tc@wanos:~$ sudo echo "off" > /proc/net/bypass/bypass_eth0/bypass
-sh: can't create /proc/net/bypass/bypass_eth0/bypass: nonexistent directory
tc@wanos:~$ sudo echo "off" > /proc/net/bypass/bypass_eth0/bypass
-sh: can't create /proc/net/bypass/bypass_eth0/bypass: nonexistent directory

Obviously, nothing happens as a result.

Seems I'm missing something... I double checked and triple checked the MAC address to make sure I entered them right.  They are, but when it booted up, the card was still lit up in bypass.  Even though the bootsync.sh file shows BPoff=1


satburn

  • Full Member
  • *****
  • Posts: 21
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #19 on: April 15, 2015, 06:47:31 PM »
I got it to bypass... I pulled the card and stuck it in another machine so that I could see what I was doing.

It was bypass_wan0... not bypass_eth0.

Ok, so now that I have it working in a regular computer and I can turn the bypass on and off sending that command.  If I turn it off, then run the clean.sh script and send the drive and card back over to the Juniper, will it still function correctly?  Or do I need to turn it back off again once it is installed in the Juniper?


ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 629
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #20 on: April 15, 2015, 06:58:16 PM »
I think it will need to be switched via the driver with that command (some cards have jumpers). The command can be added to the scripts to disable the bypass once all the wanos processes are running.

After running the clean command, the mactab needs to be edited to match the bypass card macs. I understand there is no vga, so maybe console is worth exploring.
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 #21 on: April 15, 2015, 07:01:20 PM »
Ok, I tried a null modem cable and didn't get anything on serial...  Do I need a specific pinout?

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 629
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #22 on: April 15, 2015, 07:04:24 PM »
The pin outs depends on the hardware. It could also be that the juniper console is on a different com port (this can be changed in /tce/etc/inittab) or maybe baud rate (default 9600).

In fact the mactab change can be done as the very last step. We'll be able to toggle the bypass and make the card switch and then once this works correctly update the macs.

Update: To toggle the bypass to off automatically run this one once:
echo "sudo echo 'off' > /proc/net/bypass/bypass_wan0/bypass" >> /tce/etc/wanos/wanos
« Last Edit: April 15, 2015, 07:13:18 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 #23 on: April 15, 2015, 08:02:49 PM »
BINGO!

I never could get the serial to function, so I improvised.  I actually edited the mactab file to point wan0 at the silicom and lan0 at the integrated nic (mgmnt), this way I could still SSH into it on the network.  After that, I ran the echo off script to verify I could disable the bypass, it did... then I ran the other script to add it to wanos for automatically shutting it off.  I restarted (sudo reboot) and it stayed in bypass off.  Then I added the other MAC on the silicom as lan0, restarted (sudo reboot) and it stayed in bypass off... However, after powering it down (sudo poweroff) and restarting it, it is in bypass again.

satburn

  • Full Member
  • *****
  • Posts: 21
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #24 on: April 15, 2015, 08:31:06 PM »
Nevermind, syntax error on my part... it works!  Boots up and turns off bypass automatically when it's finished booting!

That's awesome...  Now I'm on to getting these SATA drives in it hooked up so I can use them to store the database on.

Thanks for all of your help!

With some tweaking it does work on a Juniper WXC 590 without a monitor ;-)

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 629
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #25 on: April 15, 2015, 08:49:26 PM »
Awesome! Pleasure, totally worth it.
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 #26 on: April 15, 2015, 09:35:37 PM »
Have you ever had an issue with a random reboot?  It's not quite random though, it happens about 5 min after it boots.  I hear the fans go to high speed, turn around and notice the card is in bypass.  See the hard drive led pulsing like it's booting up and I hear the nic 'click' out of bypass and all is well again for 5-6 min.  Is there a log to see what the cause might be?

 ???

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 629
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #27 on: April 15, 2015, 09:52:39 PM »
No, not random reboots. Linux is usually super stable. Unless the WXC bios / Nic driver has some watchdog / intelligence to try recover with a reboot if some software event does not occur.

Maybe have a look at the output of:

sudo cat /proc/net/bypass/bypass_wan0/bypass_wd
sudo cat /proc/net/bypass/bypass_wan0/wd_autoreset
sudo cat /proc/net/bypass/bypass_wan0/reset_bypass_wd
sudo cat /proc/net/bypass/bypass_wan0/wd_expire_time
sudo cat /proc/net/bypass/bypass_wan0/bypass_info


Got these from the driver readme file.
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 #28 on: April 16, 2015, 01:48:41 PM »
I got it... there's a jumper on the mother board of the Juniper WXC 590 labeled JWD... care to take a guess what WD stands for?   ;)

Remove the jumper completely... no more reboots. 

It has 2 drives in the front SATA0 and SATA1.  I'm using SATA0 as the database drive and inside I'm using the IDE1 interface to boot from.  I'm wondering if the BIOS is already has all boot devices enabled and listed in boot order and if I could use SATA0 to boot from and SATA1 as the database drive? 

I'm going to play with it some more and see if I can.  It's running stable now.  I'll get the other one up and running and time for some tests!  Thanks!

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 629
    • View Profile
Re: Silicom Dual Port Gig Ethernet Adapter PXG2BPIG-JP
« Reply #29 on: April 16, 2015, 04:36:52 PM »
SATA should be fine. Can't see why it won't work.
CCIE RS, CCIE SP, Mnet&sys

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