Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Jul 2007 15:20:27 +0200
From:      "Daniel A. A." <alive@dienub.org>
To:        Eric Crist <mnslinky@gmail.com>
Cc:        ray@stilltech.net, freebsd-questions@freebsd.org
Subject:   Re: one server with two ip address
Message-ID:  <468F931B.4060505@dienub.org>
In-Reply-To: <9DF80946-8AC5-469E-B870-2046411DB930@gmail.com>
References:  <200707061144.17748.ray@stilltech.net> <468EDCA5.4050601@dienub.org> <9DF80946-8AC5-469E-B870-2046411DB930@gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Eric Crist wrote:
>
> On Jul 6, 2007, at 7:21 PMJul 6, 2007, Daniel A. A. wrote:
>
>> Ray wrote:
>>> Hello all,
>>> I have a production server with two network interfaces.  The primary 
>>> interface is up and running. (DHCP from the local Telco) The second 
>>> interface is installed, but not yet active. It will run on a local 
>>> network only. Can I do something as simple as ifconfig  nfe1 
>>> 192.168.0.100
>>> to give myself access to the internal network? As this is a 
>>> production server, I don't want to just play with it too much.  Thanks,
>>> Ray
>> You'd have to
>> ifconfig nfe1 192.168.0.100 netmask ###.###.###.###
>> But don't worry - If you mistype, or make some other error (Like 
>> forgetting to specify the gateway for the connection), nothing 
>> happens. You'll just get an error printed to stdout and the netif 
>> will remain untouched.
>>
>
> You can shorten that command using CIDR notation as well:
>
> ifconfig nfe1 192.168.0.100/24
>
> Eric Crist
>
Showoff :P



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?468F931B.4060505>