Re: one server with two ip address

2007-07-07 Thread Eric Crist


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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: one server with two ip address

2007-07-07 Thread Daniel A. A.

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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: one server with two ip address

2007-07-06 Thread Daniel A. A.

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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

  

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.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]