Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2003 11:34:49 -0000
From:      "Martyn Hill" <m.hill@stjamessengirls.org.uk>
To:        "Steve Warwick" <ukla@attbi.com>
Cc:        "FreeBSD-questions" <freebsd-questions@freebsd.org>
Subject:   Re: Ifconfig - no aliases?
Message-ID:  <001501c2e88b$644002d0$0b00000a@SJMOBILE11>
References:  <BA9456CB.4595%ukla@attbi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Steve

Having just implemented IP aliasing on a NIC in our FreeBSD 4.5 server and
goten it to work, my first thought is that the netmask for the alias should
be 255.255.255.255 if, as in this case, both IPs should sit on the same
subnet.

Don't ask me why, but it does work. I believe I read it in the handbook or
the man pages somewhere.

Good luck.

Martyn Hill
Network Administrator
St James Independent School
London

----- Original Message -----
From: "Steve Warwick" <ukla@attbi.com>
To: <freebsd-questions@FreeBSD.ORG>
Sent: Wednesday, March 12, 2003 11:15 AM
Subject: Ifconfig - no aliases?


> Hey All,
>
> Can some bright spark spot a mistake in this?
>
> For some reason I cannot get my NIC aliases to come up. Everything looks
> fine but no go.
>
>
> Here are the entries in rc.conf for the card (the first two digits are
xx'd
> for this email):
>
> hostname="not-sharing-that-rightnow"
> defaultrouter xx.100.110.1"
> ifconfig_rl0="inet xx.100.110.160 netmask 255.255.255.0 broadcast
> xx.100.110.255"
>
> # virtual IP ports
> ifconfig_rl0_alias0="inet xx.100.110.161 netmask 255.255.255.0 broadcast
> xx.100 .110.255"
> <snip>more entries</>
>
>
>
> And here is the ifconfig output - everything is happy on the main IP -
just
> no one else wants come and play
>
> ns1# ifconfig
> rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet xx.100.110.160 netmask 0xffffff00 broadcast xx.100.110.255
>         inet6 fe80::205:5dff:fe36:b97%rl0 prefixlen 64 scopeid 0x1
>         ether 00:05:5d:36:0b:97
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         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
> faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
>
>
>
>
> suggestions?
>
>
>
> Steve
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001501c2e88b$644002d0$0b00000a>