4.2 nic aliasing, multiple IPs, one nic does not work???

4.2 nic aliasing, multiple IPs, one nic does not work???

Post by Bea » Thu, 08 Mar 2001 03:22:38



I just upgraded to FreeBSD 4.2 from 4.1.  I had 5 IPs assigned to one
nic on 4.1, one main, 4 alias.  Now on 4.2, it will not accept aliases
to the nic.  When I boot with the config in override /etc/rc.conf, it
assigns the main IP and the first alias, but not the other three.  If
I try to manually configure from the IPs to the nic, it comes back
with:

ifconfig: inet: bad value

I have looked every where I can think of for help, both on and off
line and tried every combination I can think of, but nothing works.
It all worked fine under 4.1.  Did something get changed in 4.2 to
effect how you assign aliases to one nic????

I have asked all I know who work with FreeBSD and they are as baffled
as I am.  Any help or suggestions even if I have already tried them
will be appreciated.  I keep thinking I have made some type of
configuration error or something simple that I am missing, but, search
as I might for a problem, I come up empty handed.

4.2 did not come up with a different way to alias a nic, did it???

Thanks in advance,

Bear

 
 
 

4.2 nic aliasing, multiple IPs, one nic does not work???

Post by Lowell Gilber » Thu, 08 Mar 2001 23:51:42



> I just upgraded to FreeBSD 4.2 from 4.1.  I had 5 IPs assigned to one
> nic on 4.1, one main, 4 alias.  Now on 4.2, it will not accept aliases
> to the nic.  When I boot with the config in override /etc/rc.conf, it
> assigns the main IP and the first alias, but not the other three.  If
> I try to manually configure from the IPs to the nic, it comes back
> with:

> ifconfig: inet: bad value

> I have looked every where I can think of for help, both on and off
> line and tried every combination I can think of, but nothing works.
> It all worked fine under 4.1.  Did something get changed in 4.2 to
> effect how you assign aliases to one nic????

> I have asked all I know who work with FreeBSD and they are as baffled
> as I am.  Any help or suggestions even if I have already tried them
> will be appreciated.  I keep thinking I have made some type of
> configuration error or something simple that I am missing, but, search
> as I might for a problem, I come up empty handed.

> 4.2 did not come up with a different way to alias a nic, did it???

Not that I know of, and you didn't list what you actually tried, so
it's hard to critique it.  Try a valid newsgroup (like
comp.unix.bsd.freebsd.misc) or a FreeBSD mailing list for further
advice.

 
 
 

4.2 nic aliasing, multiple IPs, one nic does not work???

Post by Ean Kingsto » Fri, 09 Mar 2001 08:27:16


I just tried what you are talking about and it sort of worked.  Here is
what I got:

prosporo# ifconfig rl0 192.168.89.104 alias
ifconfig: ioctl (SIOCAIFADDR): File exists
prosporo# ifconfig -a
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.89.3 netmask 0xffffff00 broadcast 192.168.89.255
        inet 192.168.89.100 netmask 0xffffff00 broadcast 192.168.89.255
        inet 192.168.89.101 netmask 0xffffff00 broadcast 192.168.89.255
        inet 192.168.89.102 netmask 0xffffff00 broadcast 192.168.89.255
        inet 192.168.89.103 netmask 0xffffff00 broadcast 192.168.89.255
        inet 192.168.89.104 netmask 0xffffff00 broadcast 192.168.89.255
        ether 00:e0:29:1c:33:22
        media: autoselect (none) status: active
        supported media: autoselect 100baseTX <full-duplex> 100baseTX
10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000

You will note I got the error (which I got for all but the first alias)
but it did add the interface addresses.


> I just upgraded to FreeBSD 4.2 from 4.1.  I had 5 IPs assigned to one
> nic on 4.1, one main, 4 alias.  Now on 4.2, it will not accept aliases
> to the nic.  When I boot with the config in override /etc/rc.conf, it
> assigns the main IP and the first alias, but not the other three.  If
> I try to manually configure from the IPs to the nic, it comes back
> with:

> ifconfig: inet: bad value

> I have looked every where I can think of for help, both on and off
> line and tried every combination I can think of, but nothing works.
> It all worked fine under 4.1.  Did something get changed in 4.2 to
> effect how you assign aliases to one nic????

> I have asked all I know who work with FreeBSD and they are as baffled
> as I am.  Any help or suggestions even if I have already tried them
> will be appreciated.  I keep thinking I have made some type of
> configuration error or something simple that I am missing, but, search
> as I might for a problem, I come up empty handed.

> 4.2 did not come up with a different way to alias a nic, did it???

> Thanks in advance,

> Bear

 
 
 

4.2 nic aliasing, multiple IPs, one nic does not work???

Post by Jess » Sun, 11 Mar 2001 17:07:21



> I just upgraded to FreeBSD 4.2 from 4.1.  I had 5 IPs assigned to one
> nic on 4.1, one main, 4 alias.  Now on 4.2, it will not accept aliases
> to the nic.  When I boot with the config in override /etc/rc.conf, it
> assigns the main IP and the first alias, but not the other three.  If
> I try to manually configure from the IPs to the nic, it comes back
> with:

> ifconfig: inet: bad value

> I have looked every where I can think of for help, both on and off
> line and tried every combination I can think of, but nothing works.
> It all worked fine under 4.1.  Did something get changed in 4.2 to
> effect how you assign aliases to one nic????

> I have asked all I know who work with FreeBSD and they are as baffled
> as I am.  Any help or suggestions even if I have already tried them
> will be appreciated.  I keep thinking I have made some type of
> configuration error or something simple that I am missing, but, search
> as I might for a problem, I come up empty handed.

> 4.2 did not come up with a different way to alias a nic, did it???

> Thanks in advance,

> Bear

What syntax are you using to add the IP's manually? I never have any
problem with this, but I know I certainly don't enter 'inet' anywhere in
the string. If I want to add an IP, I just run:
'ifconfig <nic> add <IP_address> netmask <netmask>'

that command has worked for me without fail everytime. Entering the "inet"
parameter looks very linuxish... I believe it is required in the linux
version of ifconfig.

--jesse

 
 
 

1. 4.2 multiple IPs, one nic(aliasing), does not work??

I just upgraded to FreeBSD 4.2 from 4.1.  I had 5 IPs assigned to one
nic on 4.1, one main, 4 alias.  Now on 4.2, it will not accept aliases
to the nic.  When I boot with the config in override /etc/rc.conf, it
assigns the main IP and the first alias, but not the other three.  If
I try to manually configure from the IPs to the nic, it comes back
with:

ifconfig: inet: bad value

I have looked every where I can think of for help, both on and off
line and tried every combination I can think of, but nothing works.
It all worked fine under 4.1.  Did something get changed in 4.2 to
effect how you assign aliases to one nic????

I have asked all I know who work with FreeBSD and they are as baffled
as I am.  Any help or suggestions even if I have already tried them
will be appreciated.  I keep thinking I have made some type of
configuration error or something simple that I am missing, but, search
as I might for a problem, I come up empty handed.

4.2 did not come up with a different way to alias a nic, did it???

Thanks in advance,

Bear

2. Help me, please - I'm stuck...

3. Apache VirtualHost on Solaris with multiple ips bound to one nic

4. Pine problem

5. Multiple IPs on one NIC--the next step

6. How do I got more verbose output with sendmail?

7. multiples ips on one nic (Q)

8. Telnet source

9. Bind Multiple IPs to One NIC?

10. Multiple IPs, one NIC, where IP is based on MAC address

11. linksys LNE100tx v2.0 nics with FreeBSD 4.2 release not working

12. NIC works w/3.4 but not 4.2

13. multiple IPs on multiple NICs