ifconfig(8) bridge(4) ifcost not working?

2010-12-11 Thread Insan Praja SW

Hi All@,
Has anyone trying to set an interface cost on a bridge(4) devices? It  
doesn't seem to work to me.


What I'm trying to do is to create a link with L2 redundancy. I can't use  
trunk due to the nature of multi operator network. So I create both  
vlan(s) on both links and higher the cost on backup links. I can't do it  
on the backbone switch because this is a shared multipoint backbone.


When I tried;
#ifconfig bridge0 ifcost vlan4010 1000

The machines replies;
ifconfig: bridge0: 1000: invalid argument

dmesg:

OpenBSD 4.8-current (GENERIC.MP) #11: Sun Nov 21 06:48:46 WIT 2010
r...@border-rf.mygreenlinks.net:/usr/src/sys/arch/i386/compile/GENERIC.MP
RTC BIOS diagnostic error ffixed_disk,invalid_time
cpu0: Intel(R) Xeon(R) CPU X3220 @ 2.40GHz (GenuineIntel 686-class) 2.41  
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,S

SE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
real mem  = 2142744576 (2043MB)
avail mem = 2097610752 (2000MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/26/07, SMBIOS rev. 2.4 @  
0x7fbe4000 (43 entries)
bios0: vendor Intel Corporation version  
S3000.86B.02.00.0054.061120091710 date 06/11/2009

bios0: Intel S3000AH
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT SLIC FACP APIC WDDT HPET MCFG ASF! SSDT SSDT SSDT SSDT  
SSDT HEST BERT ERST EINJ
acpi0: wakeup devices SLPB(S4) P32_(S4) UAR1(S1) PEX4(S4) PEX5(S4)  
UHC1(S1) UHC2(S1) UHC3(S1) UHC4(S1) EHCI(S1) AC9M(S4) AZAL(S4)

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU X3220 @ 2.40GHz (GenuineIntel 686-class) 2.41  
GHz
cpu1:  
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,S

SE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Xeon(R) CPU X3220 @ 2.40GHz (GenuineIntel 686-class) 2.41  
GHz
cpu2:  
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,S

SE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Xeon(R) CPU X3220 @ 2.40GHz (GenuineIntel 686-class) 2.41  
GHz
cpu3:  
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,S

SE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
ioapic0 at mainbus0: apid 5 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 5
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (P32_)
acpiprt2 at acpi0: bus 1 (PEX0)
acpiprt3 at acpi0: bus -1 (PEX1)
acpiprt4 at acpi0: bus -1 (PEX2)
acpiprt5 at acpi0: bus -1 (PEX3)
acpiprt6 at acpi0: bus 2 (PEX4)
acpiprt7 at acpi0: bus 3 (PEX5)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpicpu2 at acpi0: PSS
acpicpu3 at acpi0: PSS
acpibtn0 at acpi0: SLPB
bios0: ROM list: 0xc/0x9000 0xc9000/0x1000 0xca000/0x1800  
0xcb800/0x1000

cpu0: Enhanced SpeedStep 2401 MHz: speeds: 2394, 1596 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel E7230 Host rev 0x00
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 5 int  
17 (irq 255)

pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 4 Intel 82801G PCIE rev 0x01: apic 5 int 17  
(irq 255)

pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 Intel PRO/1000 PT (82571EB) rev 0x06: apic  
5 int 16 (irq 9), address 00:15:17:86:52:fc
em1 at pci2 dev 0 function 1 Intel PRO/1000 PT (82571EB) rev 0x06: apic  
5 int 17 (irq 10), address 00:15:17:86:52:fd
ppb2 at pci0 dev 28 function 5 Intel 82801G PCIE rev 0x01: apic 5 int 16  
(irq 255)

pci3 at ppb2 bus 3
em2 at pci3 dev 0 function 0 Intel PRO/1000MT (82573E) rev 0x03: apic 5  
int 17 (irq 10), address 00:15:17:49:04:0d

Intel 82573E Serial rev 0x03 at pci3 dev 0 function 3 not configured
Intel 82573E KCS rev 0x03 at pci3 dev 0 function 4 not configured
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 5 int  
23 (irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 5 int  
19 (irq 11)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: apic 5 int  
18 (irq 11)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x01: apic 5 int  
16 (irq 9)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: apic 5 int  
23 (irq 11)

ehci0: timed out waiting for BIOS
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xe1
pci4 at ppb3 bus 4
skc0 at pci4 dev 0 function 0 D-Link DGE-530T B1 rev 0x11, Yukon Lite  
(0x9): apic 5 int 21 (irq 11)

sk0 at skc0 port A: address 

Re: ifconfig(8) bridge(4) ifcost not working?

2010-12-11 Thread Claudio Jeker
On Sat, Dec 11, 2010 at 08:59:26PM +0700, Insan Praja SW wrote:
 Hi All@,
 Has anyone trying to set an interface cost on a bridge(4) devices?
 It doesn't seem to work to me.
 
 What I'm trying to do is to create a link with L2 redundancy. I
 can't use trunk due to the nature of multi operator network. So I
 create both vlan(s) on both links and higher the cost on backup
 links. I can't do it on the backbone switch because this is a
 shared multipoint backbone.
 
 When I tried;
 #ifconfig bridge0 ifcost vlan4010 1000
 
 The machines replies;
 ifconfig: bridge0: 1000: invalid argument
 

You need to issue at least
ifconfig bridge0 stp vlan4010
first. I guess you may want to do a
ifconfig bridge0 proto rstp
as well.

After that the command works.
-- 
:wq Claudio



Re: ifconfig(8) bridge(4) ifcost not working?

2010-12-11 Thread Insan Praja SW

Hi Claudio@,

On Sat, 11 Dec 2010 21:46:39 +0700, Claudio Jeker  
cje...@diehard.n-r-g.com wrote:



On Sat, Dec 11, 2010 at 08:59:26PM +0700, Insan Praja SW wrote:

Hi All@,
Has anyone trying to set an interface cost on a bridge(4) devices?
It doesn't seem to work to me.

What I'm trying to do is to create a link with L2 redundancy. I
can't use trunk due to the nature of multi operator network. So I
create both vlan(s) on both links and higher the cost on backup
links. I can't do it on the backbone switch because this is a
shared multipoint backbone.

When I tried;
#ifconfig bridge0 ifcost vlan4010 1000

The machines replies;
ifconfig: bridge0: 1000: invalid argument



You need to issue at least
ifconfig bridge0 stp vlan4010
first. I guess you may want to do a
ifconfig bridge0 proto rstp
as well.


You're right, should look to the manpages more carefully.


After that the command works.

Thanks,


Insan Praja
--
Using Opera's revolutionary email client: http://www.opera.com/mail/