Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2009 09:20:07 -0800
From:      "Peter Steele" <psteele@maxiscale.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Do I need to run netif stop/start if IP is changed?
Message-ID:  <2ACA3DE8F9758A48B8BE2C7A847F91F247A4BB@polaris.maxiscale.com>

Next in thread | Raw E-Mail | Index | Archive | Help
We have systems that upon initial configuration have no IP addresses
assigned. Their rc.conf entries look like this:

=20

ifconfig_nfe0=3D"UP"

ifconfig_nfe1=3D"UP"

cloned_interfaces=3D"lagg0"

ifconfig_lagg0=3D"laggproto failover laggport nfe0 laggport nfe1"

defaultrouter=3D"0.0.0.0"

=20

The user later runs a tool and specifies the IP address to use for a
given system. This tool modifies ifconfig and default router lines, e.g.

=20

ifconfig_lagg0=3D"laggproto failover laggport nfe0 laggport nfe1
192.168.17.49 netmask 255.255.240.0"

defaultrouter=3D"192.168.16.1"

=20

and also executes explicit ifconfig and route add commands that match
the entries in rc.conf.=20

=20

The question is, should we also execute a netif stop/start sequence when
this IP/router information is assigned? Are there other services that
should also be stopped/restarted when the IP is set? Ideally, we want to
avoid having to reboot the box to set the IP as we are doing.

=20

=20




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?2ACA3DE8F9758A48B8BE2C7A847F91F247A4BB>