Re: Ifconfig - no aliases?

2003-03-12 Thread Martyn Hill
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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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"
> 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 mtu 1500
> inet xx.100.110.160 netmask 0xff00 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 )
> status: active
> lo0: flags=8049 mtu 16384
> inet6 ::1 prefixlen 128
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
> inet 127.0.0.1 netmask 0xff00
> faith0: flags=8002 mtu 1500
>
>
>
>
> suggestions?
>
>
>
> Steve
>
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Ifconfig - no aliases?

2003-03-12 Thread Kevin Stevens

> 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"
> more entries

Netmask for aliases on the same network should be 255.255.255.255.

KeS



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Ifconfig - no aliases?

2003-03-12 Thread Steve Warwick
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"
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 mtu 1500
inet xx.100.110.160 netmask 0xff00 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 )
status: active
lo0: flags=8049 mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff00
faith0: flags=8002 mtu 1500




suggestions?



Steve


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message