Discussion:
ifconfig bridge delete
Pieter Verberne
2012-05-31 17:01:23 UTC
Permalink
Hi,

$ sudo ifconfig bridge0 delete athn0
ifconfig: athn0: bad value
$ sudo ifconfig bridge0 del athn0
$

Uuhm?

Cheers,
Pieter

OpenBSD 5.1 (GENERIC) #160: Sun Feb 12 09:46:33 MST 2012
***@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD"
586-class) 500 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
real mem = 536408064 (511MB)
avail mem = 517537792 (493MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 20/70/03, BIOS32 rev. 0 @ 0xfac40
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0xa800
cpu0 at mainbus0: (uniprocessor)
amdmsr0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
io address conflict 0x6100/0x100
io address conflict 0x6200/0x200
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 6 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11,
address 00:00:24:cd:7d:f8
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr1 at pci0 dev 7 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 5,
address 00:00:24:cd:7d:f9
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr2 at pci0 dev 8 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 9,
address 00:00:24:cd:7d:fa
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr3 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 12,
address 00:00:24:cd:7d:fb
ukphy3 at vr3 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
athn0 at pci0 dev 17 function 0 "Atheros AR9280" rev 0x01: irq 15
athn0: AR9280 rev 2 (2T2R), ROM rev 22, address 00:0c:42:66:5a:da
glxpcib0 at pci0 dev 20 function 0 "AMD CS5536 ISA" rev 0x03: rev 3,
32-bit 3579545Hz timer, watchdog, gpio
gpio0 at glxpcib0: 32 pins
pciide0 at pci0 dev 20 function 2 "AMD CS5536 IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 1: <WDC WD5000BPVT-24HXZT3>
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 21 function 0 "AMD CS5536 USB" rev 0x02: irq 7,
version 1.0, legacy support
ehci0 at pci0 dev 21 function 1 "AMD CS5536 USB" rev 0x02: irq 7
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
mtrr: K6-family MTRR support (2 registers)
umass0 at uhub0 port 1 configuration 1 interface 0 "JMicron USB to
ATA/ATAPI Bridge" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <WDC WD32, 00AAJS-08B4A0, 3A01> SCSI2
0/direct fixed serial.152d2338D577A4144203
sd0: 305245MB, 512 bytes/sector, 625142448 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on wd0a (8ffb259a89b69646.a) swap on wd0b dump on wd0b
Camiel Dobbelaar
2012-05-31 17:32:03 UTC
Permalink
Post by Pieter Verberne
$ sudo ifconfig bridge0 delete athn0
ifconfig: athn0: bad value
$ sudo ifconfig bridge0 del athn0
$
The manpage is wrong. Only "del" works for the bridge. "delete" is
used to remove an address from the interface.

Probably a remainder of the brconfig/ifconfig merge.

I'll prepare a diff for the manpage if nobody beats me to it.
Theo de Raadt
2012-05-31 17:33:52 UTC
Permalink
Post by Pieter Verberne
$ sudo ifconfig bridge0 delete athn0
ifconfig: athn0: bad value
$ sudo ifconfig bridge0 del athn0
$
Uuhm?
This is an error in the manual page.

It came about due to the merge of brconfig(8) into ifconfig(8). When
brconfig was a seperate program either "delete <if>" or "del <if>"
would do the same thing.

However in ifconfig, "delete (noargs)" has a different meaning: delete
the first IP address on the interface. Hence, the first commandline
you entered is parsed as two commands: delete (with no argument), and
athn0. athn0 is not a good command...

In the new world order where they are merged, the right command to issue
regarding the bridge is simply "del <if>".

Index: ifconfig.8
===================================================================
RCS file: /cvs/src/sbin/ifconfig/ifconfig.8,v
retrieving revision 1.227
diff -u -p -u -r1.227 ifconfig.8
--- ifconfig.8 18 Mar 2012 23:37:08 -0000 1.227
+++ ifconfig.8 31 May 2012 17:29:45 -0000
@@ -517,18 +517,15 @@ bridge member interfaces.
Allow non-IPv4, IPv6, ARP, or Reverse ARP packets through
.Ar interface .
.It Cm del Ar interface
-Alias for
-.Cm delete .
-.It Cm deladdr Ar address
-Delete
-.Ar address
-from the cache.
-.It Cm delete Ar interface
Remove
.Ar interface
from the bridge.
Promiscuous mode is turned off for the interface when it is
removed from the bridge.
+.It Cm deladdr Ar address
+Delete
+.Ar address
+from the cache.
.It Cm delspan Ar interface
Delete
.Ar interface

Continue reading on narkive:
Loading...