Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Nov 2000 16:37:24 +0200 (SAST)
From:      Stefan Lesicnik <glock@trinity.ucs.co.za>
To:        Nathan Vidican <webmaster@wmptl.com>
Cc:        "J. Buesink" <jbuesink@mccomm.nl>, questions@FreeBSD.ORG
Subject:   Re: 2nd ip address and routing.
Message-ID:  <Pine.BSF.4.21.0011231636260.4989-100000@trinity.ucs.co.za>
In-Reply-To: <3A1D26B4.14B746E2@wmptl.com>

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


Ive noticed, im not sure of the theory why, that when you alias your nic,
you need to make the alias's subnet 255.255.255.255

ie

> ifconfig_ex0="inet 10.0.0.1 netmask 255.255.255.0"
> ifconfig_ex0_alias0="inet 10.0.0.2 netmask 255.255.255.255"
> defaultrouter="10.0.0.254"

I might be wrong

Just a thought,

Stefan


On Thu, 23 Nov 2000, Nathan Vidican wrote:

> "J. Buesink" wrote:
> > 
> > Hi,
> > 
> > I'm trying to give my ex0 a second ip adress with ifconfig, this works
> > I've also added a route to another gateway, this works.
> > 
> > But where and how can I save this configuration in the files?
> > Could somebody give me a sample config file?
> > 
> > Kind regards in advanche.
> > 
> > Jorg Buesink, The Netherlands
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> 
> /etc/rc.conf, you'd add something similar to this:
> 
> ifconfig_ex0="inet 10.0.0.1 netmask 255.255.255.0"
> ifconfig_ex0_alias0="inet 10.0.0.2 netmask 255.255.255.0"
> defaultrouter="10.0.0.254"
> 
> Take a look at /etc/defaults/rc.conf for all the possible configuration
> variables..
> 
> -- 
> Nathan Vidican
> webmaster@wmptl.com
> Windsor Match Plate & Tool Ltd.
> http://www.wmptl.com/
> 
> 
> 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?Pine.BSF.4.21.0011231636260.4989-100000>