Date: Mon, 13 May 2002 12:28:26 -0700 From: "Mike Grissom" <mikeyg@igalaxy.net> To: <freebsd-stable@freebsd.org> Subject: Re: 4.6-PRERELASE fxp alias woes Message-ID: <01d001c1fab4$5b718c70$0301a8c0@mikeyg> References: <5.1.0.14.2.20020513142059.03741410@127.0.0.1>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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 -----
From: Mike M.
To: freebsd-stable@freebsd.org
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="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
[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2715.400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thats because ip aliases have to have the netmask
of 255.255.255.255, it used to not be enforced, now it is.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=mikem@wmis.net href="mailto:mikem@wmis.net">Mike M.</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=freebsd-stable@freebsd.org
href="mailto:freebsd-stable@freebsd.org">freebsd-stable@freebsd.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, May 13, 2002 12:20 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> 4.6-PRERELASE fxp alias
woes</DIV>
<DIV><BR></DIV><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 <A
href="mailto:root@homer.wmis.net:/usr/obj/usr/src/sys/HOMER">root@homer.wmis.net:/usr/obj/usr/src/sys/HOMER</A>
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. The console
indicated a "ifconfig: ioctl (SIOCAIFADDR): File exists"<BR>for every alias
entry in my rc.conf. Keep in mind these aliases were working perfectly
as-is<BR>until the upgrade (from 4.4-STABLE 9/27/01). My first few
rc.conf entries:<BR><BR>network_interfaces="fxp0 lo0"<BR>ifconfig_fxp0="inet
216.109.194.4 netmask 255.255.255.0"<BR>ifconfig_fxp0_alias0="inet
216.109.194.8 netmask 255.255.255.0"<BR>ifconfig_fxp0_alias1="inet
216.109.194.10 netmask 255.255.255.0"<BR>ifconfig_fxp0_alias2="inet
216.109.194.21 netmask 255.255.255.0"<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 "UP" state -- (is this normal??). 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). 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. Any "alias"<BR>IP is unreachable -- a big thanks to all
of the pissed off EUs that pointed that one out to me ;-)<BR>The "primary" 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) -> 4.6-PR (the box
mentioned here)<BR>4.3-STABLE (07/24/01) -> 4.6-PR<BR>4.5-PR
(02/01/02) -> 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. Anyone have any suggestions? Am I missing some<BR>new
kernel config option perhaps?? 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> 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>
root@homer.wmis.net:/usr/obj/usr/src/sys/HOMER<BR>Timecounter "i8254"
frequency 1193182 Hz<BR>CPU: Pentium III/Pentium III Xeon/Celeron (1003.66-MHz
686-class CPU)<BR> Origin = "GenuineIntel" Id = 0x68a
Stepping = 10<BR>
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE><BR>real
memory = 268369920 (262080K bytes)<BR>avail memory = 257576960 (251540K
bytes)<BR>Programming 24 pins in IOAPIC #0<BR>IOAPIC #0 intpin 2 -> irq
0<BR>FreeBSD/SMP: Multiprocessor motherboard<BR> cpu0 (BSP): apic
id: 0, version: 0x00040011, at 0xfee00000<BR> cpu1 (AP): apic
id: 1, version: 0x00040011, at 0xfee00000<BR> io0 (APIC): apic
id: 2, version: 0x00170011, at 0xfec00000<BR>Preloaded elf kernel
"kernel" at 0xc0380000.<BR>Pentium Pro MTRR support enabled<BR>md0: Malloc
disk<BR>Using $PIR table, 9 entries at 0xc00fa010<BR>npx0: <math
processor> on motherboard<BR>npx0: INT 16 interface<BR>pcib0: <Host to
PCI bridge> on motherboard<BR>IOAPIC #0 intpin 18 -> irq 2<BR>IOAPIC #0
intpin 19 -> irq 16<BR>pci0: <PCI bus> on pcib0<BR>pcib2: <VIA
82C598MVP (Apollo MVP3) PCI-PCI (AGP) bridge> at device 1.0 on
pci0<BR>pci1: <PCI bus> on pcib2<BR>pci1: <ATI Mach64-GM graphics
accelerator> at 0.0 irq 17<BR>isab0: <VIA 82C686 PCI-ISA bridge> at
device 7.0 on pci0<BR>isa0: <ISA bus> on isab0<BR>atapci0: <VIA
82C686 ATA66 controller> 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:
<unknown card> (vendor=0x1106, dev=0x3057) at 7.4<BR>fxp0: <Intel Pro
10/100B/100+ Ethernet> 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: <i82555 10/100
media interface> on miibus0<BR>inphy0: 10baseT, 10baseT-FDX,
100baseTX, 100baseTX-FDX, auto<BR>ahc0: <Adaptec aic7899 Ultra160 SCSI
adapter> 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:
<Adaptec aic7899 Ultra160 SCSI adapter> 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: <Host to PCI bridge> on
motherboard<BR>pci2: <PCI bus> on pcib1<BR>orm0: <Option ROMs> at
iomem 0xc0000-0xc7fff,0xe0000-0xe5fff on isa0<BR>fdc0: <NEC 72065B or
clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0<BR>fdc0: FIFO enabled,
8 bytes threshold<BR>fd0: <1440-KB 3.5" drive> on fdc0 drive
0<BR>atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on
isa0<BR>atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0<BR>kbd0 at
atkbd0<BR>vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem
0xa0000-0xbffff on isa0<BR>sc0: <System console> at flags 0x100 on
isa0<BR>sc0: VGA <16 virtual consoles, flags=0x300><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 <CD-ROM 48X/AKH> 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: <TANDBERG SLR7 0483> 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: <IBM DDYS-T36950M S96H> 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: <SEAGATE ST318404LC
0006> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu
1500<BR> inet6
fe80::200:e2ff:fe3f:1dda%fxp0 prefixlen 64 scopeid 0x1
<BR> inet 216.109.194.21 netmask
0xffffff00 broadcast
216.109.194.255<BR> inet
216.109.194.27 netmask 0xffffff00 broadcast
216.109.194.255<BR> inet
216.109.194.48 netmask 0xffffff00 broadcast
216.109.194.255<BR> inet
216.109.194.54 netmask 0xffffff00 broadcast
216.109.194.255<BR> inet
216.109.194.240 netmask 0xffffff00 broadcast
216.109.194.255<BR> inet
216.109.194.241 netmask 0xffffff00 broadcast
216.109.194.255<BR> inet
216.109.194.23 netmask 0xffffff00 broadcast
216.109.194.255<BR> inet
216.109.194.4 netmask 0xffffff00 broadcast
216.109.194.255<BR> inet
216.109.194.8 netmask 0xffffff00 broadcast
216.109.194.255<BR> ether
00:00:e2:3f:1d:da<BR> media:
Ethernet autoselect
(10baseT/UTP)<BR> status:
active<BR>lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu
16384<BR> inet6 ::1 prefixlen 128
<BR> inet6 fe80::1%lo0 prefixlen 64
scopeid 0x2 <BR> inet 127.0.0.1
netmask 0xff000000 <BR>ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu
1500<BR>faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500<BR><BR>Thanks
everyone<BR><BR>Mike<BR><BR></BLOCKQUOTE></BODY></HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01d001c1fab4$5b718c70$0301a8c0>
