Dear list,
While reading the manual I am having difficulty figuring out what the
appropriate hostname.if(5) entries should be for the following
(attempted) network setup:
+ Desired subnet: 172.24.10.0/24
+ HP ProCurve 2900-24G; providing (tagged) VLAN 10 on a physical port
+ bnx0 physical parent interface (no IPv4 address attached)
+ vlan10 logical interface (parent: bnx0)
172.24.10.100 interface address
172.24.10.32 alias address
+ carp10 interface (parent: vlan10)
172.24.10.1 (for failover to another, identical machine)
172.24.10.30 (idem)
The reason I mean to assign addresses to the vlan10 interface is to
easily determine if a machine goes down. I mean to assign addresses to
the carp10 interface for (groups of) services that should have
failover to an identical machine. So far, this is just a test setup,
but I'd prefer to do it right.
What I tried (also see the copied file contents below):
+ on the bnx0 interface, I only mark it 'up'
+ on the vlan10 interface, I configure an interface address and an alias address
netmask on the alias is /32 (as per hostname.if(5); is this correct?)
+ on the carp10 interface, I place two address: 1 interface, 1 alias
netmask on the interface address is /32; as seen recommended by
henning@ in an earlier thread [1]
netmask on the alias address is also /32; continuning on hostname.if(5)
I wonder:
+ Are aliases on carp(4) interfaces supported? (things appear to be working)
+ Are my netmasks and hostname.if(5) files correct?
+ Why am I seeing the following notice in dmesg at startup?
arp_rtrequest: bad gateway value
(occurring 2 times; I'm assuming this fits the number of addresses
on the carp10 interface)
If I should provide more information than listed below, please let me know.
Thanks for any insight,
Rogier
Configuration:
# head -n 8 /etc/sysctl.conf
# Local sysctl(3) configuration
# CARP settings
net.inet.carp.preempt=1 # 1=Enable carp(4) preemption
net.inet.carp.log=1 # 1=Enable logging of carp(4) packets
# Packet forwarding
net.inet.ip.forwarding=1 # 1=Permit forwarding (routing) of IPv4 packets
EOF
# cat /etc/hostname.bnx0
up
# Interface address
#inet $ip $mask NONE
# Service aliases
#inet alias $ip 255.255.255.255
EOF
# cat /etc/hostname.vlan10
# VLAN settings
!/sbin/ifconfig bnx0 up
vlan 10 vlandev bnx0
# Interface address
inet 172.24.10.100 255.255.255.0 172.24.10.255
# Service aliases
inet alias 172.24.10.32 255.255.255.255
EOF
# cat /etc/hostname.carp10
# CARP settings
carpdev vlan10 vhid 10 advbase 1 advskew 100 pass *obfuscated*
# Interface address
inet 172.24.10.1 255.255.255.255 NONE
# Service aliases
inet alias 172.24.10.30 255.255.255.255
EOF
dmesg:
OpenBSD 4.3 (GENERIC.MP) #1582: Wed Mar 12 11:16:45 MDT 2008
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2142175232 (2042MB)
avail mem = 2068545536 (1972MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x7fb9c000 (66 entries)
bios0: vendor Dell Inc. version "2.2.6" date 02/05/2008
bios0: Dell Inc. PowerEdge 1950
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC SPCR HPET MCFG WD__ SLIC ERST HEST BERT EINJ TCPA
acpi0: wakeup devices PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU L5320 @ 1.86GHz, 1862.16 MHz
cpu0:
FPU,VME,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,TM2,CX16,xTPR,NXE,LONG
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: apic clock running at 265MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU L5320 @ 1.86GHz, 1861.92 MHz
cpu1:
FPU,VME,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,TM2,CX16,xTPR,NXE,LONG
cpu1: 4MB 64b/line 16-way L2 cache
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Xeon(R) CPU L5320 @ 1.86GHz, 1861.92 MHz
cpu2:
FPU,VME,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,TM2,CX16,xTPR,NXE,LONG
cpu2: 4MB 64b/line 16-way L2 cache
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Xeon(R) CPU L5320 @ 1.86GHz, 1861.92 MHz
cpu3:
FPU,VME,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,TM2,CX16,xTPR,NXE,LONG
cpu3: 4MB 64b/line 16-way L2 cache
ioapic0 at mainbus0 apid 4 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 4
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (PEX2)
acpiprt2 at acpi0: bus 5 (UPST)
acpiprt3 at acpi0: bus 6 (DWN1)
acpiprt4 at acpi0: bus 8 (DWN2)
acpiprt5 at acpi0: bus 1 (PEX3)
acpiprt6 at acpi0: bus 0 (PE2P)
acpiprt6: no apic found for irq 64
acpiprt6: no apic found for irq 65
acpiprt6: no apic found for irq 78
acpiprt7 at acpi0: bus 10 (PEX4)
acpiprt8 at acpi0: bus 12 (PEX6)
acpiprt9 at acpi0: bus 2 (SBEX)
acpiprt10 at acpi0: bus 14 (COMP)
acpicpu0 at acpi0: C3
acpicpu1 at acpi0: C3
acpicpu2 at acpi0: C3
acpicpu3 at acpi0: C3
ipmi at mainbus0 not configured
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 "Intel 5000X Host" rev 0x12
ppb0 at pci0 dev 2 function 0 "Intel 5000 PCIE" rev 0x12
pci1 at ppb0 bus 4
ppb1 at pci1 dev 0 function 0 "Intel 6321ESB PCIE" rev 0x01
pci2 at ppb1 bus 5
ppb2 at pci2 dev 0 function 0 "Intel 6321ESB PCIE" rev 0x01
pci3 at ppb2 bus 6
ppb3 at pci3 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xc3
pci4 at ppb3 bus 7
bnx0 at pci4 dev 0 function 0 "Broadcom BCM5708" rev 0x12: apic 4 int 16 (irq 6)
ppb4 at pci2 dev 1 function 0 "Intel 6321ESB PCIE" rev 0x01
pci5 at ppb4 bus 8
ppb5 at pci1 dev 0 function 3 "Intel 6321ESB PCIE-PCIX" rev 0x01
pci6 at ppb5 bus 9
ppb6 at pci0 dev 3 function 0 "Intel 5000 PCIE" rev 0x12
pci7 at ppb6 bus 1
mfi0 at pci7 dev 0 function 0 "Symbios Logic SAS1078" rev 0x04: apic 4
int 16 (irq 6), Dell PERC 6/i integrated
mfi0: logical drives 1, version 6.0.2-0002, 256MB RAM
scsibus0 at mfi0: 1 targets
sd0 at scsibus0 targ 0 lun 0: <DELL, PERC 6/i, 1.11> SCSI3 0/direct fixed
sd0: 139264MB, 17753 cyl, 255 head, 63 sec, 512 bytes/sec, 285212672 sec total
ppb7 at pci0 dev 4 function 0 "Intel 5000 PCIE x8" rev 0x12: apic 4
int 16 (irq 0)
pci8 at ppb7 bus 10
em0 at pci8 dev 0 function 0 "Intel PRO/1000 PT (82571EB)" rev 0x06:
apic 4 int 16 (irq 6), address 00:15:17:74:6e:e4
em1 at pci8 dev 0 function 1 "Intel PRO/1000 PT (82571EB)" rev 0x06:
apic 4 int 17 (irq 5), address 00:15:17:74:6e:e5
ppb8 at pci0 dev 5 function 0 "Intel 5000 PCIE" rev 0x12
pci9 at ppb8 bus 11
ppb9 at pci0 dev 6 function 0 "Intel 5000 PCIE x8" rev 0x12: apic 4
int 16 (irq 0)
pci10 at ppb9 bus 12
ppb10 at pci0 dev 7 function 0 "Intel 5000 PCIE" rev 0x12
pci11 at ppb10 bus 13
pchb1 at pci0 dev 16 function 0 "Intel 5000 Error Reporting" rev 0x12
pchb2 at pci0 dev 16 function 1 "Intel 5000 Error Reporting" rev 0x12
pchb3 at pci0 dev 16 function 2 "Intel 5000 Error Reporting" rev 0x12
pchb4 at pci0 dev 17 function 0 "Intel 5000 Reserved" rev 0x12
pchb5 at pci0 dev 19 function 0 "Intel 5000 Reserved" rev 0x12
pchb6 at pci0 dev 21 function 0 "Intel 5000 FBD" rev 0x12
pchb7 at pci0 dev 22 function 0 "Intel 5000 FBD" rev 0x12
ppb11 at pci0 dev 28 function 0 "Intel 6321ESB PCIE" rev 0x09
pci12 at ppb11 bus 2
ppb12 at pci12 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xc3
pci13 at ppb12 bus 3
bnx1 at pci13 dev 0 function 0 "Broadcom BCM5708" rev 0x12: apic 4 int
16 (irq 6)
uhci0 at pci0 dev 29 function 0 "Intel 6321ESB USB" rev 0x09: apic 4
int 21 (irq 11)
uhci1 at pci0 dev 29 function 1 "Intel 6321ESB USB" rev 0x09: apic 4
int 20 (irq 10)
uhci2 at pci0 dev 29 function 2 "Intel 6321ESB USB" rev 0x09: apic 4
int 21 (irq 11)
uhci3 at pci0 dev 29 function 3 "Intel 6321ESB USB" rev 0x09: apic 4
int 20 (irq 10)
ehci0 at pci0 dev 29 function 7 "Intel 6321ESB USB" rev 0x09: apic 4
int 21 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb13 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xd9
pci14 at ppb13 bus 14
vga1 at pci14 dev 13 function 0 "ATI ES1000" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 31 function 0 "Intel 6321ESB LPC" rev 0x09
pciide0 at pci0 dev 31 function 1 "Intel 6321ESB IDE" rev 0x09: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <TEAC, DVD-ROM DV28EV, D.AE> SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
uhub5 at uhub0 port 1 "Dell product 0xa001" rev 2.00/0.00 addr 2
uhidev0 at uhub5 port 1 configuration 1 interface 0 "Dell DRAC5" rev
1.10/0.00 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub5 port 1 configuration 1 interface 1 "Dell DRAC5" rev
1.10/0.00 addr 3
uhidev1: iclass 3/1
ums0 at uhidev1
ums0: X report 0x0002 not supported
umass0 at uhub5 port 2 configuration 1 interface 0 "DELL INC. DRAC5
VIRTUAL MEDIA" rev 2.00/0.00 addr 4
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets
cd1 at scsibus2 targ 1 lun 0: <Dell, Virtual CDROM, 123> SCSI0 5/cdrom removable
umass1 at uhub5 port 2 configuration 1 interface 1 "DELL INC. DRAC5
VIRTUAL MEDIA" rev 2.00/0.00 addr 4
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets
sd1 at scsibus3 targ 1 lun 0: <Dell, Virtual Floppy, 123> SCSI0
0/direct removable
sd1: drive offline
uhub6 at uhub0 port 5 "Cypress Semiconductor USB2 Hub" rev 2.00/0.0b addr 5
softraid0 at root
root on sd0a swap on sd0b dump on sd0b
bnx1: address 00:1e:c9:ac:8d:80
brgphy0 at bnx1 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 6
bnx0: address 00:1e:c9:ac:8d:82
brgphy1 at bnx0 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 6
References:
1. OpenBSD-misc - Henning Brauer - Re: Can't ping top-level public IP subnets
http://marc.info/?l=openbsd-misc&m=123464537104366&w=2
http://marc.info/?t=123370394000001&r=1&w=2
--
If you don't know where you're going, any road will get you there.