Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2002 15:20:12 -0400
From:      "Mike M." <mikem@wmis.net>
To:        freebsd-stable@freebsd.org
Subject:   4.6-PRERELASE fxp alias woes
Message-ID:  <5.1.0.14.2.20020513142059.03741410@127.0.0.1>

next in thread | raw e-mail | index | archive | help
--=====================_270672731==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

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="fxp0 lo0"
ifconfig_fxp0="inet 216.109.194.4 netmask 255.255.255.0"
ifconfig_fxp0_alias0="inet 216.109.194.8 netmask 255.255.255.0"
ifconfig_fxp0_alias1="inet 216.109.194.10 netmask 255.255.255.0"
ifconfig_fxp0_alias2="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
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 = "GenuineIntel"  Id = 0x68a  Stepping = 10
   Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 268369920 (262080K bytes)
avail memory = 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: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
IOAPIC #0 intpin 18 -> irq 2
IOAPIC #0 intpin 19 -> irq 16
pci0: <PCI bus> on pcib0
pcib2: <VIA 82C598MVP (Apollo MVP3) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib2
pci1: <ATI Mach64-GM graphics accelerator> at 0.0 irq 17
isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA66 controller> port 0x8cc0-0x8ccf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <unknown card> (vendor=0x1106, dev=0x3057) at 7.4
fxp0: <Intel Pro 10/100B/100+ Ethernet> 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: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ahc0: <Adaptec aic7899 Ultra160 SCSI adapter> port 0x8400-0x84ff mem 
0x82101000-0x82101fff irq 16 at device 15.0 on pci0
aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
ahc1: <Adaptec aic7899 Ultra160 SCSI adapter> port 0x8800-0x88ff mem 
0x82102000-0x82102fff irq 16 at device 15.1 on pci0
aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
pcib1: <Host to PCI bridge> on motherboard
pci2: <PCI bus> on pcib1
orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xe0000-0xe5fff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
ata0-slave: ATAPI identify retries exceeded
SMP: AP CPU #1 Launched!
acd0: CDROM <CD-ROM 48X/AKH> at ata0-master PIO4
Waiting 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
sa0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
da1 at ahc0 bus 0 target 1 lun 0
da1: <IBM DDYS-T36950M S96H> Fixed Direct Access SCSI-3 device
da1: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing 
Enabled
da1: 35003MB (71687340 512 byte sectors: 255H 63S/T 4462C)
da0 at ahc0 bus 0 target 0 lun 0
da0: <SEAGATE ST318404LC 0006> Fixed Direct Access SCSI-3 device
da0: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing 
Enabled
da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
Mounting root from ufs:/dev/da0s1a


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

Thanks everyone

Mike


--=====================_270672731==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<font face="Courier New, Courier">Greetings all,<br><br>
I cvsup'd to the latest -stable last night (4.6-pr):<br><br>
FreeBSD homer.wmis.net 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #3: Mon May
13 12:22:11 EDT 2002&nbsp;&nbsp;&nbsp;&nbsp;
root@homer.wmis.net:/usr/obj/usr/src/sys/HOMER&nbsp; i386<br><br>
</font>Much to my dismay, I rebooted after running mergemaster, and
discovered that none of<br>
my IP aliases were in place.&nbsp; The console indicated a
&quot;ifconfig: ioctl (SIOCAIFADDR): File exists&quot;<br>
for every alias entry in my rc.conf.&nbsp; Keep in mind these aliases
were working perfectly as-is<br>
until the upgrade (from 4.4-STABLE 9/27/01).&nbsp; My first few rc.conf
entries:<br><br>
network_interfaces=&quot;fxp0 lo0&quot;<br>
ifconfig_fxp0=&quot;inet 216.109.194.4 netmask 255.255.255.0&quot;<br>
ifconfig_fxp0_alias0=&quot;inet 216.109.194.8 netmask
255.255.255.0&quot;<br>
ifconfig_fxp0_alias1=&quot;inet 216.109.194.10 netmask
255.255.255.0&quot;<br>
ifconfig_fxp0_alias2=&quot;inet 216.109.194.21 netmask
255.255.255.0&quot;<br><br>
<br>
I was able to get homer to take the aliases by bringing fxp0 down from
the console<br>
and adding them one by one manually.. but every time I would add an alias
the interface<br>
would be put back in an &quot;UP&quot; state -- (is this normal??).&nbsp;
So I would have to:<br><br>
ifconfig fxp0 down<br>
ifconfig fxp0 alias 216.109.194.8 netmask 255.255.255.0<br>
ifconfig fxp0 down<br>
ifconfig fxp0 alias 216.109.194.10 netmask 255.255.255.0<br><br>
(and so on).&nbsp; If I didn't down the interface before adding an alias,
I would get the above <br>
File exists error.<br><br>
Although this made ifconfig appear to have bound the IP, it really
didn't.&nbsp; Any &quot;alias&quot;<br>
IP is unreachable -- a big thanks to all of the pissed off EUs that
pointed that one out to me ;-)<br>
The &quot;primary&quot; IP is reachable from anywhere, though.<br><br>
I've experienced this behavior on 3 of my servers...<br>
4.4-STABLE (09/27/01) -&gt; 4.6-PR&nbsp; (the box mentioned here)<br>
4.3-STABLE (07/24/01) -&gt; 4.6-PR<br>
4.5-PR&nbsp; (02/01/02) -&gt; 4.6-PR<br><br>
I apologize if this is a known issue or my own stupidity, but it doesn't
seem logical and<br>
I'm kind of lost where to go from here.&nbsp; Anyone have any
suggestions?&nbsp; Am I missing some<br>
new kernel config option perhaps??&nbsp; dmesg follows...<br><br>
Copyright (c) 1992-2002 The FreeBSD Project.<br>
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,
1994<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The Regents of the University
of California. All rights reserved.<br>
FreeBSD 4.6-PRERELEASE #3: Mon May 13 12:22:11 EDT 2002<br>
&nbsp;&nbsp;&nbsp; root@homer.wmis.net:/usr/obj/usr/src/sys/HOMER<br>
Timecounter &quot;i8254&quot;&nbsp; frequency 1193182 Hz<br>
CPU: Pentium III/Pentium III Xeon/Celeron (1003.66-MHz 686-class
CPU)<br>
&nbsp; Origin = &quot;GenuineIntel&quot;&nbsp; Id = 0x68a&nbsp; Stepping
= 10<br>
&nbsp;
Features=0x383fbff&lt;FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE&gt;<br>
real memory&nbsp; = 268369920 (262080K bytes)<br>
avail memory = 257576960 (251540K bytes)<br>
Programming 24 pins in IOAPIC #0<br>
IOAPIC #0 intpin 2 -&gt; irq 0<br>
FreeBSD/SMP: Multiprocessor motherboard<br>
&nbsp;cpu0 (BSP): apic id:&nbsp; 0, version: 0x00040011, at
0xfee00000<br>
&nbsp;cpu1 (AP):&nbsp; apic id:&nbsp; 1, version: 0x00040011, at
0xfee00000<br>
&nbsp;io0 (APIC): apic id:&nbsp; 2, version: 0x00170011, at
0xfec00000<br>
Preloaded elf kernel &quot;kernel&quot; at 0xc0380000.<br>
Pentium Pro MTRR support enabled<br>
md0: Malloc disk<br>
Using $PIR table, 9 entries at 0xc00fa010<br>
npx0: &lt;math processor&gt; on motherboard<br>
npx0: INT 16 interface<br>
pcib0: &lt;Host to PCI bridge&gt; on motherboard<br>
IOAPIC #0 intpin 18 -&gt; irq 2<br>
IOAPIC #0 intpin 19 -&gt; irq 16<br>
pci0: &lt;PCI bus&gt; on pcib0<br>
pcib2: &lt;VIA 82C598MVP (Apollo MVP3) PCI-PCI (AGP) bridge&gt; at device
1.0 on pci0<br>
pci1: &lt;PCI bus&gt; on pcib2<br>
pci1: &lt;ATI Mach64-GM graphics accelerator&gt; at 0.0 irq 17<br>
isab0: &lt;VIA 82C686 PCI-ISA bridge&gt; at device 7.0 on pci0<br>
isa0: &lt;ISA bus&gt; on isab0<br>
atapci0: &lt;VIA 82C686 ATA66 controller&gt; port 0x8cc0-0x8ccf at device
7.1 on pci0<br>
ata0: at 0x1f0 irq 14 on atapci0<br>
ata1: at 0x170 irq 15 on atapci0<br>
pci0: &lt;unknown card&gt; (vendor=0x1106, dev=0x3057) at 7.4<br>
fxp0: &lt;Intel Pro 10/100B/100+ Ethernet&gt; port 0x8c00-0x8c3f mem
0x82800000-0x828fffff,0x82700000-0x82700fff irq 2 at device 13.0 on
pci0<br>
fxp0: Ethernet address 00:00:e2:3f:1d:da<br>
inphy0: &lt;i82555 10/100 media interface&gt; on miibus0<br>
inphy0:&nbsp; 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto<br>
ahc0: &lt;Adaptec aic7899 Ultra160 SCSI adapter&gt; port 0x8400-0x84ff
mem 0x82101000-0x82101fff irq 16 at device 15.0 on pci0<br>
aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs<br>
ahc1: &lt;Adaptec aic7899 Ultra160 SCSI adapter&gt; port 0x8800-0x88ff
mem 0x82102000-0x82102fff irq 16 at device 15.1 on pci0<br>
aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs<br>
pcib1: &lt;Host to PCI bridge&gt; on motherboard<br>
pci2: &lt;PCI bus&gt; on pcib1<br>
orm0: &lt;Option ROMs&gt; at iomem 0xc0000-0xc7fff,0xe0000-0xe5fff on
isa0<br>
fdc0: &lt;NEC 72065B or clone&gt; at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2
on isa0<br>
fdc0: FIFO enabled, 8 bytes threshold<br>
fd0: &lt;1440-KB 3.5&quot; drive&gt; on fdc0 drive 0<br>
atkbdc0: &lt;Keyboard controller (i8042)&gt; at port 0x60,0x64 on
isa0<br>
atkbd0: &lt;AT Keyboard&gt; flags 0x1 irq 1 on atkbdc0<br>
kbd0 at atkbd0<br>
vga0: &lt;Generic ISA VGA&gt; at port 0x3c0-0x3df iomem 0xa0000-0xbffff
on isa0<br>
sc0: &lt;System console&gt; at flags 0x100 on isa0<br>
sc0: VGA &lt;16 virtual consoles, flags=0x300&gt;<br>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0<br>
sio0: type 16550A<br>
sio1 at port 0x2f8-0x2ff irq 3 on isa0<br>
sio1: type 16550A<br>
APIC_IO: Testing 8254 interrupt delivery<br>
APIC_IO: routing 8254 via IOAPIC #0 intpin 2<br>
ata0-slave: ATAPI identify retries exceeded<br>
SMP: AP CPU #1 Launched!<br>
acd0: CDROM &lt;CD-ROM 48X/AKH&gt; at ata0-master PIO4<br>
Waiting 7 seconds for SCSI devices to settle<br>
sa0 at ahc1 bus 0 target 2 lun 0<br>
sa0: &lt;TANDBERG SLR7 0483&gt; Removable Sequential Access SCSI-2 device
<br>
sa0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit)<br>
da1 at ahc0 bus 0 target 1 lun 0<br>
da1: &lt;IBM DDYS-T36950M S96H&gt; Fixed Direct Access SCSI-3 device
<br>
da1: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing
Enabled<br>
da1: 35003MB (71687340 512 byte sectors: 255H 63S/T 4462C)<br>
da0 at ahc0 bus 0 target 0 lun 0<br>
da0: &lt;SEAGATE ST318404LC 0006&gt; Fixed Direct Access SCSI-3 device
<br>
da0: 160.000MB/s transfers (80.000MHz, offset 63, 16bit), Tagged Queueing
Enabled<br>
da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)<br>
Mounting root from ufs:/dev/da0s1a<br><br>
<br>
homer# ifconfig -a<br>
fxp0: flags=8843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; mtu
1500<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet6
fe80::200:e2ff:fe3f:1dda%fxp0 prefixlen 64 scopeid 0x1 <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet 216.109.194.21 netmask
0xffffff00 broadcast 216.109.194.255<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet 216.109.194.27 netmask
0xffffff00 broadcast 216.109.194.255<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet 216.109.194.48 netmask
0xffffff00 broadcast 216.109.194.255<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet 216.109.194.54 netmask
0xffffff00 broadcast 216.109.194.255<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet 216.109.194.240 netmask
0xffffff00 broadcast 216.109.194.255<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet 216.109.194.241 netmask
0xffffff00 broadcast 216.109.194.255<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet 216.109.194.23 netmask
0xffffff00 broadcast 216.109.194.255<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet 216.109.194.4 netmask
0xffffff00 broadcast 216.109.194.255<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet 216.109.194.8 netmask
0xffffff00 broadcast 216.109.194.255<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ether 00:00:e2:3f:1d:da<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; media: Ethernet autoselect
(10baseT/UTP)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; status: active<br>
lo0: flags=8049&lt;UP,LOOPBACK,RUNNING,MULTICAST&gt; mtu 16384<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet6 ::1 prefixlen 128 <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet6 fe80::1%lo0 prefixlen 64
scopeid 0x2 <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet 127.0.0.1 netmask
0xff000000 <br>
ppp0: flags=8010&lt;POINTOPOINT,MULTICAST&gt; mtu 1500<br>
faith0: flags=8002&lt;BROADCAST,MULTICAST&gt; mtu 1500<br><br>
Thanks everyone<br><br>
Mike<br><br>
</html>

--=====================_270672731==_.ALT--


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.2.20020513142059.03741410>