All aliases on the same subnet need to use a netmask of 255.255.255.255, as
described in the ifconfig man page.

This is what you should be doing:

ifconfig_xl0="inet 129.x.x.35 netmask 255.255.255.0"
ifconfig_xl0_alias0="inet 129.x.x.6 netmask 255.255.255.255"
ifconfig_xl0_alias1="inet 129.x.x.5 netmask 255.255.255.255"

Matt

----- Original Message -----
From: "Redmond Militante" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 12:13 PM
Subject: rc.conf syntax for ip alias on external nic

hi

i have the following lines in my rc.conf, and i was wondering if my syntax
was ok:

-------
#here, i'm setting the ip/subnet mask for outside nic interface for a dual
homed gateway box
ifconfig_xl0="inet 129.x.x.35 netmask 255.255.255.0"

#declaring three network interfaces - outside nic interface for gateway,
internal interface for private subnet, and loopback
network_interfaces="xl0 xl1 lo0"

#not sure about the following lines: trying to alias two public ip's to the
outside nic interface for the gateway.  the gateway will use ipnat to nat
these public ip's to two internal client machines hooked up to the internal
interface - xl1- of the gateway box
ifconfig_xl0_alias0="inet 129.x.x.6 netmask 255.0.0.0"
ifconfig_xl0_alias1="inet 129.x.x.5 netmask 255.0.0.0"

#inside nic of gateway box
ifconfig_xl1="inet 192.168.1.1 netmask 255.0.0.0"
-------

i'm having trouble i think with the two aliases to the outside nic of the
gateway.  it works fine when i have only one client hooked up to the
gateway, but when i have both clients hooked up to the gateway through a
hub, i have problems - mainly, i reboot both machines, and one machine
usually freezes on reboot.

any advice would be really appreciated

thanks
redmond


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

Reply via email to