How to change NIC IP when system is running FBSD 6.1

Nick Withers nick at nickwithers.com
Tue Jul 18 09:29:46 UTC 2006


On Tue, 18 Jul 2006 09:13:05 -0000 (GMT)
"DSA - JCR" <juancr at dsa.es> wrote:

> Hi all
> 
> I need to change the IP and netmask of my FreeBSD 6.1 Box and I dont' know
> how to do once the system is up and running.

ifconfig(8). For instance, to set the IP address 10.1.2.3 with
a netmask of 255.255.255.0 on interface rl0, you might use
(there are other ways of doing it):
  ifconfig rl0 inet 10.1.2.3 netmask 0xffffff00

Now, I'm not entirely sure what you mean by "up and running",
but if you mean "post-install", you can use the same
specification style in /etc/rc.conf, for instance:
  ifconfig_rl0="inet 10.1.2.3 netmask 0xffffff00"

> I have tried doing with KDE but I have several errors when I restart the computer.

'Fraid I can't offer any assistance here, but I suspect others
might be able to, if you provide a little more information.

> I have Samba installed also.

Not sure what you're trying to say here... Are you worried
about changing the binding address(es) of a Samba server?

> Can anyone help me?
> 
> Thanks in advance and best regards
> 
> Juan Coruña
> Desarrollo de Software Atlantico
-- 
Nick Withers
email: nick at nickwithers.com
Web: http://www.nickwithers.com
Mobile: +61 414 397 446


More information about the freebsd-questions mailing list