Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 1997 11:12:50 -0700 (PDT)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        Wes Hester <software@crosslogic.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: help with sysconfig file
Message-ID:  <Pine.BSF.3.96.970416111030.29831L-100000@localhost>
In-Reply-To: <335408EA.703B@crosslogic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Apr 1997, Wes Hester wrote:

> In the file called test_ip I have the following:
> 
> #This file configures multiple ips to a single ethernet card 
> address
> 
> ifconfig ed0 inet 208.197.69.20 255.255.255.192 alias
> route add -host 208.197.69.20 127.0.0.1 0

If I remember correctly:

1.  The netmask should be 255.255.255.255 if the alias'd IP is on the same
subnet as the main IP for this interface.
2.  Your ifconfig syntax is wrong.  You need a 'netmask' keyword between
the ip addresses.  
3.  The route add is redundant; the system will DTRT with regard to
routing your alias.  

So, try the following in sysconfig:

ifconfig_ed0_alias0="208.197.69.20 netmask 0xffffffff alias"

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970416111030.29831L-100000>