From owner-freebsd-stable Mon May 13 12:28:58 2002 Delivered-To: freebsd-stable@freebsd.org Received: from postoffice.igalaxy.net (hal.igalaxy.net [64.160.104.142]) by hub.freebsd.org (Postfix) with ESMTP id D0E1D37B403 for ; Mon, 13 May 2002 12:28:38 -0700 (PDT) Received: from mikeyg [64.160.106.43] by postoffice.igalaxy.net (SMTPD32-7.06) id A4AA34F30110; Mon, 13 May 2002 12:31:54 -0700 Message-ID: <01d001c1fab4$5b718c70$0301a8c0@mikeyg> Reply-To: "Mike Grissom" From: "Mike Grissom" To: References: <5.1.0.14.2.20020513142059.03741410@127.0.0.1> Subject: Re: 4.6-PRERELASE fxp alias woes Date: Mon, 13 May 2002 12:28:26 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01CD_01C1FA79.AE87B280" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_01CD_01C1FA79.AE87B280 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thats because ip aliases have to have the netmask of 255.255.255.255, it = used to not be enforced, now it is. ----- Original Message -----=20 From: Mike M.=20 To: freebsd-stable@freebsd.org=20 Sent: Monday, May 13, 2002 12:20 PM Subject: 4.6-PRERELASE fxp alias woes Greetings all, I cvsup'd to the latest -stable last night (4.6-pr): FreeBSD homer.wmis.net 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #3: Mon = May 13 12:22:11 EDT 2002 = root@homer.wmis.net:/usr/obj/usr/src/sys/HOMER i386 Much to my dismay, I rebooted after running mergemaster, and = discovered that none of my IP aliases were in place. The console indicated a "ifconfig: ioctl = (SIOCAIFADDR): File exists" for every alias entry in my rc.conf. Keep in mind these aliases were = working perfectly as-is until the upgrade (from 4.4-STABLE 9/27/01). My first few rc.conf = entries: network_interfaces=3D"fxp0 lo0" ifconfig_fxp0=3D"inet 216.109.194.4 netmask 255.255.255.0" ifconfig_fxp0_alias0=3D"inet 216.109.194.8 netmask 255.255.255.0" ifconfig_fxp0_alias1=3D"inet 216.109.194.10 netmask 255.255.255.0" ifconfig_fxp0_alias2=3D"inet 216.109.194.21 netmask 255.255.255.0" I was able to get homer to take the aliases by bringing fxp0 down from = the console and adding them one by one manually.. but every time I would add an = alias the interface would be put back in an "UP" state -- (is this normal??). So I would = have to: ifconfig fxp0 down ifconfig fxp0 alias 216.109.194.8 netmask 255.255.255.0 ifconfig fxp0 down ifconfig fxp0 alias 216.109.194.10 netmask 255.255.255.0 (and so on). If I didn't down the interface before adding an alias, I = would get the above=20 File exists error. Although this made ifconfig appear to have bound the IP, it really = didn't. Any "alias" IP is unreachable -- a big thanks to all of the pissed off EUs that = pointed that one out to me ;-) The "primary" IP is reachable from anywhere, though. I've experienced this behavior on 3 of my servers... 4.4-STABLE (09/27/01) -> 4.6-PR (the box mentioned here) 4.3-STABLE (07/24/01) -> 4.6-PR 4.5-PR (02/01/02) -> 4.6-PR I apologize if this is a known issue or my own stupidity, but it = doesn't seem logical and I'm kind of lost where to go from here. Anyone have any suggestions? = Am I missing some new kernel config option perhaps?? dmesg follows... Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, = 1994 The Regents of the University of California. All rights = reserved. FreeBSD 4.6-PRERELEASE #3: Mon May 13 12:22:11 EDT 2002 root@homer.wmis.net:/usr/obj/usr/src/sys/HOMER Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (1003.66-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0x68a Stepping =3D 10 = Features=3D0x383fbff real memory =3D 268369920 (262080K bytes) avail memory =3D 257576960 (251540K bytes) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000 Preloaded elf kernel "kernel" at 0xc0380000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 9 entries at 0xc00fa010 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard IOAPIC #0 intpin 18 -> irq 2 IOAPIC #0 intpin 19 -> irq 16 pci0: on pcib0 pcib2: at device = 1.0 on pci0 pci1: on pcib2 pci1: at 0.0 irq 17 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x8cc0-0x8ccf at device = 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: (vendor=3D0x1106, dev=3D0x3057) at 7.4 fxp0: port 0x8c00-0x8c3f mem = 0x82800000-0x828fffff,0x82700000-0x82700fff irq 2 at device 13.0 on pci0 fxp0: Ethernet address 00:00:e2:3f:1d:da inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: port 0x8400-0x84ff mem = 0x82101000-0x82101fff irq 16 at device 15.0 on pci0 aic7899: Ultra160 Wide Channel A, SCSI Id=3D7, 32/253 SCBs ahc1: port 0x8800-0x88ff mem = 0x82102000-0x82102fff irq 16 at device 15.1 on pci0 aic7899: Ultra160 Wide Channel B, SCSI Id=3D7, 32/253 SCBs pcib1: on motherboard pci2: on pcib1 orm0:
Thats because ip aliases have to have = the netmask=20 of 255.255.255.255, it used to not be enforced, now it is.
----- Original Message -----
From:=20 Mike M. =
Sent: Monday, May 13, 2002 = 12:20 PM
Subject: 4.6-PRERELASE fxp = alias=20 woes

Greetings = all,

I=20 cvsup'd to the latest -stable last night (4.6-pr):

FreeBSD=20 homer.wmis.net 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #3: Mon May 13 = 12:22:11=20 EDT 2002     root@homer= .wmis.net:/usr/obj/usr/src/sys/HOMER =20 i386

Much to my dismay, I rebooted after running = mergemaster,=20 and discovered that none of
my IP aliases were in place.  The = console=20 indicated a "ifconfig: ioctl (SIOCAIFADDR): File exists"
for every = alias=20 entry in my rc.conf.  Keep in mind these aliases were working = perfectly=20 as-is
until the upgrade (from 4.4-STABLE 9/27/01).  My first = few=20 rc.conf entries:

network_interfaces=3D"fxp0 = lo0"
ifconfig_fxp0=3D"inet=20 216.109.194.4 netmask 255.255.255.0"
ifconfig_fxp0_alias0=3D"inet=20 216.109.194.8 netmask 255.255.255.0"
ifconfig_fxp0_alias1=3D"inet=20 216.109.194.10 netmask 255.255.255.0"
ifconfig_fxp0_alias2=3D"inet=20 216.109.194.21 netmask 255.255.255.0"


I was able to get = homer to=20 take the aliases by bringing fxp0 down from the console
and adding = them one=20 by one manually.. but every time I would add an alias the = interface
would=20 be put back in an "UP" state -- (is this normal??).  So I would = have=20 to:

ifconfig fxp0 down
ifconfig fxp0 alias 216.109.194.8 = netmask=20 255.255.255.0
ifconfig fxp0 down
ifconfig fxp0 alias = 216.109.194.10=20 netmask 255.255.255.0

(and so on).  If I didn't down the = interface=20 before adding an alias, I would get the above
File exists=20 error.

Although this made ifconfig appear to have bound the IP, = it=20 really didn't.  Any "alias"
IP is unreachable -- a big thanks = to all=20 of the pissed off EUs that pointed that one out to me ;-)
The = "primary" IP=20 is reachable from anywhere, though.

I've experienced this = behavior on 3=20 of my servers...
4.4-STABLE (09/27/01) -> 4.6-PR  (the box=20 mentioned here)
4.3-STABLE (07/24/01) -> 4.6-PR
4.5-PR =20 (02/01/02) -> 4.6-PR

I apologize if this is a known issue or = my own=20 stupidity, but it doesn't seem logical and
I'm kind of lost where = to go=20 from here.  Anyone have any suggestions?  Am I missing = some
new=20 kernel config option perhaps??  dmesg follows...

Copyright = (c)=20 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, = 1986, 1988,=20 1989, 1991, 1992, 1993, = 1994
        The=20 Regents of the University of California. All rights = reserved.
FreeBSD=20 4.6-PRERELEASE #3: Mon May 13 12:22:11 EDT 2002
   =20 root@homer.wmis.net:/usr/obj/usr/src/sys/HOMER
Timecounter = "i8254" =20 frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron = (1003.66-MHz=20 686-class CPU)
  Origin =3D "GenuineIntel"  Id =3D = 0x68a =20 Stepping =3D 10
 =20 = Features=3D0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,= PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real=20 memory  =3D 268369920 (262080K bytes)
avail memory =3D = 257576960 (251540K=20 bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> = irq=20 0
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic = id:  0, version: 0x00040011, at 0xfee00000
 cpu1 = (AP):  apic=20 id:  1, version: 0x00040011, at 0xfee00000
 io0 (APIC): = apic=20 id:  2, version: 0x00170011, at 0xfec00000
Preloaded elf = kernel=20 "kernel" at 0xc0380000.
Pentium Pro MTRR support enabled
md0: = Malloc=20 disk
Using $PIR table, 9 entries at 0xc00fa010
npx0: <math=20 processor> on motherboard
npx0: INT 16 interface
pcib0: = <Host to=20 PCI bridge> on motherboard
IOAPIC #0 intpin 18 -> irq = 2
IOAPIC #0=20 intpin 19 -> irq 16
pci0: <PCI bus> on pcib0
pcib2: = <VIA=20 82C598MVP (Apollo MVP3) PCI-PCI (AGP) bridge> at device 1.0 on=20 pci0
pci1: <PCI bus> on pcib2
pci1: <ATI Mach64-GM = graphics=20 accelerator> at 0.0 irq 17
isab0: <VIA 82C686 PCI-ISA = bridge> at=20 device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: = <VIA=20 82C686 ATA66 controller> port 0x8cc0-0x8ccf at device 7.1 on = pci0
ata0:=20 at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on = atapci0
pci0:=20 <unknown card> (vendor=3D0x1106, dev=3D0x3057) at 7.4
fxp0: = <Intel Pro=20 10/100B/100+ Ethernet> port 0x8c00-0x8c3f mem=20 0x82800000-0x828fffff,0x82700000-0x82700fff irq 2 at device 13.0 on=20 pci0
fxp0: Ethernet address 00:00:e2:3f:1d:da
inphy0: <i82555 = 10/100=20 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX,=20 100baseTX, 100baseTX-FDX, auto
ahc0: <Adaptec aic7899 Ultra160 = SCSI=20 adapter> port 0x8400-0x84ff mem 0x82101000-0x82101fff irq 16 at = device 15.0=20 on pci0
aic7899: Ultra160 Wide Channel A, SCSI Id=3D7, 32/253 = SCBs
ahc1:=20 <Adaptec aic7899 Ultra160 SCSI adapter> port 0x8800-0x88ff mem=20 0x82102000-0x82102fff irq 16 at device 15.1 on pci0
aic7899: = Ultra160 Wide=20 Channel B, SCSI Id=3D7, 32/253 SCBs
pcib1: <Host to PCI = bridge> on=20 motherboard
pci2: <PCI bus> on pcib1
orm0: <Option = ROMs> at=20 iomem 0xc0000-0xc7fff,0xe0000-0xe5fff on isa0
fdc0: <NEC 72065B = or=20 clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO = enabled,=20 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive=20 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on = isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 = at=20 atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem=20 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 = on=20 isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
sio0 at = port=20 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at = port=20 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
APIC_IO: Testing = 8254=20 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin=20 2
ata0-slave: ATAPI identify retries exceeded
SMP: AP CPU #1=20 Launched!
acd0: CDROM <CD-ROM 48X/AKH> at ata0-master = PIO4
Waiting=20 7 seconds for SCSI devices to settle
sa0 at ahc1 bus 0 target 2 lun = 0
sa0: <TANDBERG SLR7 0483> Removable Sequential Access = SCSI-2 device=20
sa0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
da1 at = ahc0 bus=20 0 target 1 lun 0
da1: <IBM DDYS-T36950M S96H> Fixed Direct = Access=20 SCSI-3 device
da1: 160.000MB/s transfers (80.000MHz, offset 63, = 16bit),=20 Tagged Queueing Enabled
da1: 35003MB (71687340 512 byte sectors: = 255H 63S/T=20 4462C)
da0 at ahc0 bus 0 target 0 lun 0
da0: <SEAGATE = ST318404LC=20 0006> Fixed Direct Access SCSI-3 device
da0: 160.000MB/s = transfers=20 (80.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da0: 17501MB = (35843670 512 byte sectors: 255H 63S/T 2231C)
Mounting root from=20 ufs:/dev/da0s1a


homer# ifconfig -a
fxp0:=20 flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu=20 1500
        inet6=20 fe80::200:e2ff:fe3f:1dda%fxp0 prefixlen 64 scopeid 0x1=20
        inet 216.109.194.21 = netmask=20 0xffffff00 broadcast=20 216.109.194.255
        inet=20 216.109.194.27 netmask 0xffffff00 broadcast=20 216.109.194.255
        inet=20 216.109.194.48 netmask 0xffffff00 broadcast=20 216.109.194.255
        inet=20 216.109.194.54 netmask 0xffffff00 broadcast=20 216.109.194.255
        inet=20 216.109.194.240 netmask 0xffffff00 broadcast=20 216.109.194.255
        inet=20 216.109.194.241 netmask 0xffffff00 broadcast=20 216.109.194.255
        inet=20 216.109.194.23 netmask 0xffffff00 broadcast=20 216.109.194.255
        inet=20 216.109.194.4 netmask 0xffffff00 broadcast=20 216.109.194.255
        inet=20 216.109.194.8 netmask 0xffffff00 broadcast=20 216.109.194.255
        ether=20 00:00:e2:3f:1d:da
        media: = Ethernet autoselect=20 (10baseT/UTP)
        status:=20 active
lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu=20 16384
        inet6 ::1 = prefixlen 128=20
        inet6 fe80::1%lo0 = prefixlen 64=20 scopeid 0x2
        inet = 127.0.0.1=20 netmask 0xff000000
ppp0: flags=3D8010<POINTOPOINT,MULTICAST> = mtu=20 1500
faith0: flags=3D8002<BROADCAST,MULTICAST> mtu = 1500

Thanks=20 everyone

Mike

------=_NextPart_000_01CD_01C1FA79.AE87B280-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message