login
Header Space

 
 

Re: Is there any bug with bnx which would cause vlans fail?

Previous thread: Publishing your spamtraps list, is that a wise move? by Peter N. M. Hansteen on Thursday, July 5, 2007 - 5:07 am. (9 messages)

Next thread: Unable to play CSS scrambled DVDs on USB drive under -current by Andreas on Thursday, July 5, 2007 - 7:59 am. (1 message)
To: <misc@...>
Date: Thursday, July 5, 2007 - 7:28 am

Hi,

In the switch:
interface GigabitEthernet0/3
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,101,1280
 switchport mode trunk
 no ip address

interface GigabitEthernet0/6
 switchport access vlan 101
 no ip address

In machine A:
cat /etc/hostname.bnx0
up
cat /etc/hostname.bnx1
up
cat /etc/hostname.trunk0
trunkproto failover trunkport bnx0 trunkport bnx1
cat /etc/hostname.vlan101
vlan 101 vlandev trunk0
inet 192.168.0.1 255.255.255.240 NONE

In machine B:
cat /etc/hostname.bnx0
inet 192.168.0.7 255.255.255.240 NONE


Machine A is connected to GigabitEthernet0/3
Machine B is connected to GigabitEthernet0/6

They can't ping each other.
I don't see any traffic (not even arps) when I use
tcpdump -pni vlan101

Here comes dmesg on the HPDL360G5 machines:

OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Xeon(R) CPU 5160 @ 3.00GHz ("GenuineIntel" 686-class) 3.01 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
real mem  = 2145316864 (2095036K)
avail mem = 1950748672 (1905028K)
using 4278 buffers containing 107388928 bytes (104872K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf0000, SMBIOS rev. 2.3 @ 0xee000 (67 entries)
bios0: HP ProLiant DL360 G5
pcibios0 at bios0: rev 3.0 @ 0xf0000/0x2000
pcibios0: PCI BIOS has 9 Interrupt Routing table entries
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 6321ESB LPC" rev 0x00)
pcibios0: PCI bus #22 is the last bus
bios0: ROM list: 0xc0000/0xb000 0xcc400/0x4000! 0xd0400/0x1800 0xe6000/0x2000!
acpi at mainbus0 not configured
ipmi0 at mainbus0: version 2.0 interface KCS iobase 0xca2/2 spacing 1
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x25d8 rev 0xb1
p...
To: <misc@...>
Date: Tuesday, July 10, 2007 - 4:18 am

I am now fairly certain the problem is on OpenBSD's side (either my
configuration is wrong, or there is a bug!). I'm this certain because
merely defining the same on a GNU/Linux box, it worked on the first try:

	ifconfig eth1 up
	vconfig add eth1 101
	ifconfig eth1.101 192.168.0.1 netmask  255.255.255.240

Machine A pinged machine B and vice-versa, traffic flowed through the
vlan virtual interface.


-- 
Fnord.
Today is Sweetmorn, the 45th day of Confusion in the YOLD 3173
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Gandhi
+ So let's do it...?
To: Rui Miguel Silva Seabra <rms@...>, <misc@...>
Date: Tuesday, July 10, 2007 - 4:50 am

Have you tried a -current snapshot at all?
sys/dev/pci/if_bnx.c 1.49 may be relevant.

description:
----------------------------
revision 1.49
date: 2007/05/21 10:05:03;  author: reyk;  state: Exp;  lines: +4 -3
fix bnx vlan tagging in the rx path; do not attach the vlan tag twice
if the firmware has been told to keep it and copy the tag in network
byte order in the other case.

ok mcbride@ dlg@
=============================================================================
To: <misc@...>
Date: Tuesday, July 10, 2007 - 5:12 am

ooo... I thought I could be hitting a bug, damn, I hate compiling under
qemu and that's the close I can do with a network access :|

Rui

-- 
P'tang!
Today is Sweetmorn, the 45th day of Confusion in the YOLD 3173
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Gandhi
+ So let's do it...?
To: Rui Miguel Silva Seabra <rms@...>, <misc@...>
Date: Tuesday, July 10, 2007 - 6:04 am

Can't you download a snapshot kernel on some other box and transfer
it some way that doesn't involve vlans on bnx? (USB memory stick,
USB nic, change the switch port to untagged, crossover-cable, etc..)
To: <misc@...>
Date: Tuesday, July 10, 2007 - 9:36 am

I didn't know that. Thanks, I'll try it first.

Rui

-- 
Or not.
Today is Sweetmorn, the 45th day of Confusion in the YOLD 3173
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Gandhi
+ So let's do it...?
To: <misc@...>
Date: Tuesday, July 10, 2007 - 10:01 am

yay! it seems to have worked as advertised on TV ;)

Thank you, Stuart!

-- 
You are what you see.
Today is Sweetmorn, the 45th day of Confusion in the YOLD 3173
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Gandhi
+ So let's do it...?
Previous thread: Publishing your spamtraps list, is that a wise move? by Peter N. M. Hansteen on Thursday, July 5, 2007 - 5:07 am. (9 messages)

Next thread: Unable to play CSS scrambled DVDs on USB drive under -current by Andreas on Thursday, July 5, 2007 - 7:59 am. (1 message)
speck-geostationary