Re: what exactly is enc0?

2008-10-16 Thread J.C. Roberts
On Wednesday 15 October 2008, ropers wrote:
 I don't know if it is possible to use --surrounding physical space
 permitting-- 64bit cards in 32 bit slots (and have them run w/
 reduced performance). IIRC, something like that used to be possible
 back when it came to the transition from 8bit ISA to 16bit ISA slots;
 back then, some 16bit ISA cards could be used in 8bit slots at
 reduced speeds. Whether something like that is possible now with
 64bit PCI cards I don't know. Maybe someone else knows.

Of course it depends on the design of the specific card, but yes, at 
least *some* 64-bit cards can be used in 32-bit slots. I've seen early 
64-bit PCI SCSI controller cards that were built this way.

--
JCR



Re: what exactly is enc0?

2008-10-16 Thread Henning Brauer
* ropers [EMAIL PROTECTED] [2008-10-15 22:44]:
 (Personally, I've never even ever run across anything else but 5V PCI
 cards and slots. Probably because I've never owned a Soekris.)

I'm pretty sure that your average pile of pci cards has way more 3.3v
capable cards than 5v-only ones. ay more.

-- 
Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED]
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg  Amsterdam



Re: what exactly is enc0?

2008-10-16 Thread Guido Tschakert
J.C. Roberts schrieb:
 On Wednesday 15 October 2008, ropers wrote:
 I don't know if it is possible to use --surrounding physical space
 permitting-- 64bit cards in 32 bit slots (and have them run w/
 reduced performance). IIRC, something like that used to be possible
 back when it came to the transition from 8bit ISA to 16bit ISA slots;
 back then, some 16bit ISA cards could be used in 8bit slots at
 reduced speeds. Whether something like that is possible now with
 64bit PCI cards I don't know. Maybe someone else knows.
 
 Of course it depends on the design of the specific card, but yes, at 
 least *some* 64-bit cards can be used in 32-bit slots. I've seen early 
 64-bit PCI SCSI controller cards that were built this way.
 
 --
 JCR
 
 
Not that I would recommend them anymore,
but the D-Link DGE-550T/SX (64bit/66MHz) worked in an Asus P4P800-VM
(PCI 32bit) for me (with OpenBSD of course).
I think it depends on the card __and__ the mainboard if it works or not.

guido



Re: what exactly is enc0?

2008-10-16 Thread Johan Beisser
The board's PCI slot has to be molded to support it. If not, a dremmel
and a little precision will permit the card to sit in the slot with no
problems.

Shave a few mm off the PCI slot's side, don't cut the card.
.

On 10/16/08, J.C. Roberts [EMAIL PROTECTED] wrote:
 On Wednesday 15 October 2008, ropers wrote:
 I don't know if it is possible to use --surrounding physical space
 permitting-- 64bit cards in 32 bit slots (and have them run w/
 reduced performance). IIRC, something like that used to be possible
 back when it came to the transition from 8bit ISA to 16bit ISA slots;
 back then, some 16bit ISA cards could be used in 8bit slots at
 reduced speeds. Whether something like that is possible now with
 64bit PCI cards I don't know. Maybe someone else knows.

 Of course it depends on the design of the specific card, but yes, at
 least *some* 64-bit cards can be used in 32-bit slots. I've seen early
 64-bit PCI SCSI controller cards that were built this way.

 --
 JCR



Re: what exactly is enc0?

2008-10-15 Thread Matthew Dempsky
enc0 is a virtual interface for ipsec traffic.  See the enc(4) man
page for details.



Re: what exactly is enc0?

2008-10-15 Thread Richard Toohey

On 15/10/2008, at 8:59 PM, Vivek Ayer wrote:


Hey folks,

So having successfully installed OpenBSD on my lab's Sun Blade
Workstation, I started to configure the network. The blade workstation
had two ethernet ports, gem0 and enc0. gem0 is the gigabit PCI
adapter, but enc0 is not like a traditional network card. What exactly
is it? Having seen two network ports, I was hoping to add redundancy
to the system with CARP/pfsync with a crossover cable. I can even set
an IP address on the enc0; does that mean it can function as a regular
network adapter?

On a related note, if enc0 is actually for something else, I have a
bunch of gigabit PCI ethernet cards, but these aren't Sun PCI. Is
there a workaround for this? (I actually haven't seen the PCI ports
inside the Sun yet).

Thanks,
Vivek
Excited about 4.4 Release!!!


It's OpenBSD, use the man pages.  8-)

$ man enc
ENC(4)OpenBSD Programmer's  
Manual   ENC(4)


NAME
 enc - encapsulating interface

SYNOPSIS
 pseudo-device enc 1

DESCRIPTION
 The enc interface is a virtual interface for ipsec(4) traffic.   
It allows
 packet filtering using pf(4); prior to encapsulation and after  
decapsula-
 tion, packets may be monitored using tcpdump(8).  Only one enc  
interface,

 enc0, is supported.



Re: what exactly is enc0?

2008-10-15 Thread Alexander Hall

Hi,

man enc

/Alexander

Vivek Ayer wrote:

Hey folks,

So having successfully installed OpenBSD on my lab's Sun Blade
Workstation, I started to configure the network. The blade workstation
had two ethernet ports, gem0 and enc0. gem0 is the gigabit PCI
adapter, but enc0 is not like a traditional network card. What exactly
is it? Having seen two network ports, I was hoping to add redundancy
to the system with CARP/pfsync with a crossover cable. I can even set
an IP address on the enc0; does that mean it can function as a regular
network adapter?

On a related note, if enc0 is actually for something else, I have a
bunch of gigabit PCI ethernet cards, but these aren't Sun PCI. Is
there a workaround for this? (I actually haven't seen the PCI ports
inside the Sun yet).

Thanks,
Vivek
Excited about 4.4 Release!!!




Re: what exactly is enc0?

2008-10-15 Thread Vivek Ayer
ok enc0 is actually a virtual interface. It's not even that other
network card. The other network card that's not being detected is part
of the bellerophon PCI daughterboard which includes a video out,
ethernet, sound card, a red led that's always blinking, among other
things. Apparently, openbsd is not detecting this PCI interface. If
anyone had a similar setup, help would be appreciated. Otherwise, I
can just go ahead and get two Sun PCI Network Cards.

Thanks,
Vivek


On Wed, Oct 15, 2008 at 12:59 AM, Vivek Ayer [EMAIL PROTECTED] wrote:
 Hey folks,

 So having successfully installed OpenBSD on my lab's Sun Blade
 Workstation, I started to configure the network. The blade workstation
 had two ethernet ports, gem0 and enc0. gem0 is the gigabit PCI
 adapter, but enc0 is not like a traditional network card. What exactly
 is it? Having seen two network ports, I was hoping to add redundancy
 to the system with CARP/pfsync with a crossover cable. I can even set
 an IP address on the enc0; does that mean it can function as a regular
 network adapter?

 On a related note, if enc0 is actually for something else, I have a
 bunch of gigabit PCI ethernet cards, but these aren't Sun PCI. Is
 there a workaround for this? (I actually haven't seen the PCI ports
 inside the Sun yet).

 Thanks,
 Vivek
 Excited about 4.4 Release!!!



Re: what exactly is enc0?

2008-10-15 Thread Vivek Ayer
Can you put the regular smaller PCI cards (The majority of PCI
cards) in Suns? The Sun PCI port is bigger, but can smaller PCI cards
fit into these bigger ports?

Thanks

On Wed, Oct 15, 2008 at 7:08 AM, Christian Weisgerber
[EMAIL PROTECTED] wrote:
 Vivek Ayer [EMAIL PROTECTED] wrote:

 On a related note, if enc0 is actually for something else, I have a
 bunch of gigabit PCI ethernet cards, but these aren't Sun PCI. Is
 there a workaround for this?

 You can put non-Sun PCI components into a Blade without problems.
 The firmware will not support booting from them, but if OpenBSD has
 a driver, they will be work just fine.

 To my Blade 100, for instance, I have added two ethernet cards and
 a crypto accelerator that aren't from Sun:

 hifn0 at pci1 dev 0 function 0 Hifn 7955/7954 rev 0x00: LZS 3DES ARC4 MD5 
 SHA1 RNG AES PK, 32KB dram, ivec 0x7d9
 fxp0 at pci1 dev 1 function 0 Intel 8255x rev 0x08, i82559: ivec 0x7ca, 
 address 00:d0:b7:3c:01:7c
 inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
 em0 at pci1 dev 2 function 0 Intel PRO/1000MT (82540EM) rev 0x02: ivec 
 0x7d5, address 00:07:e9:3e:60:2f

 --
 Christian naddy Weisgerber  [EMAIL PROTECTED]



Re: what exactly is enc0?

2008-10-15 Thread Christian Weisgerber
Vivek Ayer [EMAIL PROTECTED] wrote:

 On a related note, if enc0 is actually for something else, I have a
 bunch of gigabit PCI ethernet cards, but these aren't Sun PCI. Is
 there a workaround for this?

You can put non-Sun PCI components into a Blade without problems.
The firmware will not support booting from them, but if OpenBSD has
a driver, they will be work just fine.

To my Blade 100, for instance, I have added two ethernet cards and
a crypto accelerator that aren't from Sun:

hifn0 at pci1 dev 0 function 0 Hifn 7955/7954 rev 0x00: LZS 3DES ARC4 MD5 
SHA1 RNG AES PK, 32KB dram, ivec 0x7d9
fxp0 at pci1 dev 1 function 0 Intel 8255x rev 0x08, i82559: ivec 0x7ca, 
address 00:d0:b7:3c:01:7c
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
em0 at pci1 dev 2 function 0 Intel PRO/1000MT (82540EM) rev 0x02: ivec 0x7d5, 
address 00:07:e9:3e:60:2f

-- 
Christian naddy Weisgerber  [EMAIL PROTECTED]



Re: what exactly is enc0?

2008-10-15 Thread Cezary Morga
Dnia 6roda, 15 padziernika 2008 10:12, Vivek Ayer napisa3:
 ok enc0 is actually a virtual interface. It's not even that other
 network card. The other network card that's not being detected is part
 of the bellerophon PCI daughterboard which includes a video out,
 ethernet, sound card, a red led that's always blinking,

And the machine that goes PING? :)

 among other
 things. Apparently, openbsd is not detecting this PCI interface. If
 anyone had a similar setup, help would be appreciated. Otherwise, I
 can just go ahead and get two Sun PCI Network Cards.

Maybe OpenBSD does not support given ethernet card or the daughterboard? See
the supported hardware list http://www.openbsd.org/sparc.html#hardware. You
might want to check /var/run/dmesg.boot for something that may look like the
hardware you're missing.
--
Pozdrawiam,
Cezary Morga
Research is the process of going up alleys to see if they are blind.
(Marston Bates)



Re: what exactly is enc0?

2008-10-15 Thread Christian Weisgerber
Vivek Ayer [EMAIL PROTECTED] wrote:

 Can you put the regular smaller PCI cards (The majority of PCI
 cards) in Suns? The Sun PCI port is bigger, but can smaller PCI cards
 fit into these bigger ports?

Those are just 64-bit PCI slots.  Again, there is nothing Sun-specific
about it.  And yes, you can use 32-bit cards in 64-bit slots.

-- 
Christian naddy Weisgerber  [EMAIL PROTECTED]



Re: what exactly is enc0?

2008-10-15 Thread Vivek Ayer
Are you sure they can fit in the slots? Wikipedia shows two voltage
types for PCI cards: 3.3V and 5V which have different configurations.
Regular 32-bit PCI network cards use 5  V signaling, which is what
more computers have. I'll have to check and see what the Blades have.
They may be able to support both types.

Thanks.

On Wed, Oct 15, 2008 at 10:54 AM, Christian Weisgerber
[EMAIL PROTECTED] wrote:
 Vivek Ayer [EMAIL PROTECTED] wrote:

 Can you put the regular smaller PCI cards (The majority of PCI
 cards) in Suns? The Sun PCI port is bigger, but can smaller PCI cards
 fit into these bigger ports?

 Those are just 64-bit PCI slots.  Again, there is nothing Sun-specific
 about it.  And yes, you can use 32-bit cards in 64-bit slots.

 --
 Christian naddy Weisgerber  [EMAIL PROTECTED]



Re: what exactly is enc0?

2008-10-15 Thread Tomas Bodzar

It's encapsulating interface for ipsec traffic

http://www.openbsd.org/cgi-bin/man.cgi?query=encapropos=0sektion=0manpath=OpenBSD+Currentarch=i386format=html

Vivek Ayer wrote:

Hey folks,

So having successfully installed OpenBSD on my lab's Sun Blade
Workstation, I started to configure the network. The blade workstation
had two ethernet ports, gem0 and enc0. gem0 is the gigabit PCI
adapter, but enc0 is not like a traditional network card. What exactly
is it? Having seen two network ports, I was hoping to add redundancy
to the system with CARP/pfsync with a crossover cable. I can even set
an IP address on the enc0; does that mean it can function as a regular
network adapter?

On a related note, if enc0 is actually for something else, I have a
bunch of gigabit PCI ethernet cards, but these aren't Sun PCI. Is
there a workaround for this? (I actually haven't seen the PCI ports
inside the Sun yet).

Thanks,
Vivek
Excited about 4.4 Release!!!




Re: what exactly is enc0?

2008-10-15 Thread Stuart Henderson
On 2008-10-15, Vivek Ayer [EMAIL PROTECTED] wrote:
 Are you sure they can fit in the slots? Wikipedia shows two voltage
 types for PCI cards: 3.3V and 5V which have different configurations.
 Regular 32-bit PCI network cards use 5  V signaling, which is what
 more computers have. I'll have to check and see what the Blades have.
 They may be able to support both types.

from the they still haven't got round to making an official manual
for their main range of boards wiki for soekris devices, there's some
information about 3.3/5V signalling here:

http://wiki.soekris.info/The_PCI_slot_seems_like_it's_backwards%2C_what_gives



Re: what exactly is enc0?

2008-10-15 Thread ropers
2008/10/15 Vivek Ayer [EMAIL PROTECTED]:
 Are you sure they can fit in the slots? Wikipedia shows two voltage
 types for PCI cards: 3.3V and 5V which have different configurations.
 Regular 32-bit PCI network cards use 5  V signaling, which is what
 more computers have. I'll have to check and see what the Blades have.
 They may be able to support both types.

 Thanks.

From the English Wikipedia Peripheral Component Interconnect page that
you yourself quoted:

http://en.wikipedia.org/wiki/Image:PCI_Keying.png

It's simple:

1. The voltage considerations are identical for the conventional 32bit
and the new 64bit PCI slots.

2. You can use 32bit PCI cards of a given voltage in the corresponding
64bit slots of the same voltage (on the same row in the above
graphic). 64bit slots are backwards compatible.

Hence:

- You can use 3.3V 32bit PCI cards in 3.3V 32bit PCI slots and in 3.3V
64bit PCI slots.
- You can use 5V 32bit PCI cards in 5V 32bit PCI slots and in 5V 64bit
PCI slots.
- You can use universal 32bit PCI cards in 3.3V and 5V 32bit PCI slots
as well as in 3.3V and 5V 64bit PCI slots.
(Personally, I've never even ever run across anything else but 5V PCI
cards and slots. Probably because I've never owned a Soekris.)

I don't know if it is possible to use --surrounding physical space
permitting-- 64bit cards in 32 bit slots (and have them run w/ reduced
performance). IIRC, something like that used to be possible back when
it came to the transition from 8bit ISA to 16bit ISA slots; back then,
some 16bit ISA cards could be used in 8bit slots at reduced speeds.
Whether something like that is possible now with 64bit PCI cards I
don't know. Maybe someone else knows.

Thanks and regards,
--ropers



Re: what exactly is enc0?

2008-10-15 Thread Vivek Ayer
The network card(s) I have in bulk are the Encore Gigabit (9.99) from
Newegg. I checked out that these were indeed Universal 32-bit, so it's
definite that they'll fit in the Sun Blades. I just wanted to install
these for the CARP/pfsync interface.

I just started freaking out before because I had some old PCI sound
card which was just 5V and then after looking at the Sun Manual to see
that the majority of the slots are 3.3V. In either case, the cards
should work. Great! Thank god for Universal PCI!!

Vivek

On Wed, Oct 15, 2008 at 1:35 PM, ropers [EMAIL PROTECTED] wrote:
 2008/10/15 Vivek Ayer [EMAIL PROTECTED]:
 Are you sure they can fit in the slots? Wikipedia shows two voltage
 types for PCI cards: 3.3V and 5V which have different configurations.
 Regular 32-bit PCI network cards use 5  V signaling, which is what
 more computers have. I'll have to check and see what the Blades have.
 They may be able to support both types.

 Thanks.

 From the English Wikipedia Peripheral Component Interconnect page that
 you yourself quoted:

 http://en.wikipedia.org/wiki/Image:PCI_Keying.png

 It's simple:

 1. The voltage considerations are identical for the conventional 32bit
 and the new 64bit PCI slots.

 2. You can use 32bit PCI cards of a given voltage in the corresponding
 64bit slots of the same voltage (on the same row in the above
 graphic). 64bit slots are backwards compatible.

 Hence:

 - You can use 3.3V 32bit PCI cards in 3.3V 32bit PCI slots and in 3.3V
 64bit PCI slots.
 - You can use 5V 32bit PCI cards in 5V 32bit PCI slots and in 5V 64bit
 PCI slots.
 - You can use universal 32bit PCI cards in 3.3V and 5V 32bit PCI slots
 as well as in 3.3V and 5V 64bit PCI slots.
 (Personally, I've never even ever run across anything else but 5V PCI
 cards and slots. Probably because I've never owned a Soekris.)

 I don't know if it is possible to use --surrounding physical space
 permitting-- 64bit cards in 32 bit slots (and have them run w/ reduced
 performance). IIRC, something like that used to be possible back when
 it came to the transition from 8bit ISA to 16bit ISA slots; back then,
 some 16bit ISA cards could be used in 8bit slots at reduced speeds.
 Whether something like that is possible now with 64bit PCI cards I
 don't know. Maybe someone else knows.

 Thanks and regards,
 --ropers