From owner-svn-doc-head@freebsd.org Mon Feb 29 11:34:02 2016 Return-Path: Delivered-To: svn-doc-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 43552AB8734; Mon, 29 Feb 2016 11:34:02 +0000 (UTC) (envelope-from blackend@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1C58111A5; Mon, 29 Feb 2016 11:34:02 +0000 (UTC) (envelope-from blackend@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u1TBY1VB024208; Mon, 29 Feb 2016 11:34:01 GMT (envelope-from blackend@FreeBSD.org) Received: (from blackend@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1TBY1WL024207; Mon, 29 Feb 2016 11:34:01 GMT (envelope-from blackend@FreeBSD.org) Message-Id: <201602291134.u1TBY1WL024207@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: blackend set sender to blackend@FreeBSD.org using -f From: Marc Fonvieille Date: Mon, 29 Feb 2016 11:34:01 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r48296 - head/en_US.ISO8859-1/books/handbook/config X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Feb 2016 11:34:02 -0000 Author: blackend Date: Mon Feb 29 11:34:00 2016 New Revision: 48296 URL: https://svnweb.freebsd.org/changeset/doc/48296 Log: Add informations on how to use DHCP for NIC configuration. Refine the Testing and Troubleshooting section. Modified: head/en_US.ISO8859-1/books/handbook/config/chapter.xml Modified: head/en_US.ISO8859-1/books/handbook/config/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/config/chapter.xml Mon Feb 29 04:49:11 2016 (r48295) +++ head/en_US.ISO8859-1/books/handbook/config/chapter.xml Mon Feb 29 11:34:00 2016 (r48296) @@ -967,9 +967,29 @@ lo0: flags=8049<UP,LOOPBACK,RUNNING,M NIC configuration can be performed from the command line with &man.ifconfig.8; but will not persist after a reboot unless the configuration is also added to - /etc/rc.conf. Add a line for each - NIC present on the system, as seen in this - example: + /etc/rc.conf. If a + DHCP server is present on your LAN, you + will just have to add the following line: + + ifconfig_dc0="DHCP" + + Replace dc0 with the correct value + for the system. + + The line added, then, follow the instructions given in . + + + If the network was configured during installation, some + entries for the NIC(s) may be already + present. Double check /etc/rc.conf + before adding any lines. + + + In the case, there is no DHCP server, + the NIC(s) have to be configured manually. + Add a line for each NIC present on the + system, as seen in this example: ifconfig_dc0="inet 192.168.1.3 netmask 255.255.255.0" ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP" @@ -981,11 +1001,6 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255. &man.rc.conf.5; for more details about the allowed options and the syntax of /etc/rc.conf. - If the network was configured during installation, some - entries for the NIC(s) may be already - present. Double check /etc/rc.conf - before adding any lines. - If the network is not using DNS, edit /etc/hosts to add the names and IP addresses of the hosts on the @@ -1003,7 +1018,7 @@ ifconfig_dc1="inet 10.0.0.1 netmask 255. - + Testing and Troubleshooting Once the necessary changes to @@ -1066,7 +1081,12 @@ round-trip min/avg/max/stddev = 0.700/0. of the IP address. If there is no DNS server on the network, /etc/hosts must first be - configured. + configured. To this purpose, edit + /etc/hosts to add the names and + IP addresses of the hosts on the + LAN, if they are not already there. For + more information, refer to &man.hosts.5; and to + /usr/share/examples/etc/hosts. @@ -1113,7 +1133,7 @@ round-trip min/avg/max/stddev = 0.700/0. if a cable is unplugged. Check the output of netstat -rn and make sure there is a valid route to the host. If there is not, read - . + . ping: sendto: Permission denied error messages are often caused by a misconfigured firewall.