From owner-freebsd-questions Mon Jan 6 14:44:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA06409 for questions-outgoing; Mon, 6 Jan 1997 14:44:42 -0800 (PST) Received: from george.lbl.gov (george-2.lbl.gov [131.243.2.12]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id OAA06404 for ; Mon, 6 Jan 1997 14:44:39 -0800 (PST) Received: (jin@localhost) by george.lbl.gov (8.6.10/8.6.5) id OAA21797; Mon, 6 Jan 1997 14:44:23 -0800 Date: Mon, 6 Jan 1997 14:44:23 -0800 From: "Jin Guojun[ITG]" Message-Id: <199701062244.OAA21797@george.lbl.gov> To: dwhite@resnet.uoregon.edu Subject: Re: help on set netmasks Cc: questions@FreeBSD.ORG Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk } > According to "man networks", the netmasks should be placed in the file } > /etc/networks and look like: } } > Would some one please tell me where should I set the subnet masks? } } I, FWIW, have NEVER touched /etc/networks. Netmasks should be set on a } per-interface basis, so you want /etc/sysconfig's ifconfig lines. } } ifconfig_ed0="xxx.yyy.zzz.qqq netmask 255.255.255.0 ..." I do not want to explicitly to use netmask x.x.x.y. Because the host may have many network interfaces, and some of them will be dynamically changed. I really want to have a file to contain all subnet masks for default setting. BSD was using /etc/netmasks to do so. Does any one know what is right now? Thanks, -Jin