From owner-freebsd-questions Fri May 2 20:57:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id UAA10103 for questions-outgoing; Fri, 2 May 1997 20:57:58 -0700 (PDT) Received: from mh1.cts.com (root@mh1.cts.com [205.163.24.66]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA10097 for ; Fri, 2 May 1997 20:57:56 -0700 (PDT) Received: from lheaton.cts.com (thermite1.cts.com [204.216.165.73]) by mh1.cts.com (8.8.5/8.8.5) with SMTP id UAA03927 for ; Fri, 2 May 1997 20:57:54 -0700 (PDT) Message-Id: <3.0.1.32.19970502205629.006952a8@king.cts.com> X-Sender: lheaton@king.cts.com X-Mailer: Windows Eudora Light Version 3.0.1 (32) Date: Fri, 02 May 1997 20:56:29 -0700 To: freebsd-questions@freebsd.org From: Leland Heaton Subject: Tutorial Question (packet routing) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I am currently reading the tutorial/documentation for FreeBSD packet routing and networks. This is what my problem is: This is taken from the tutorial: <> For our sample configuration we'll insert a line immediately after the <> loopback device definition that says: <> <> if config_ed0="inet 192.168.1.1 netmask 255.255.255.0" <> <> When youv've finished editing /etc/sysconfig to specify and configure <> the network interfaces the section should look really close to: <> <> --- <> network_interfaces="lo0 ed0" <> ifconfig_lo0="inet localhost" <> ifconfig_ed0="inet 192.168.1.1 netmask 0xffffff00" <> --- Now here is my two problems. First off, is it safe to assume that in the first ifconfig_ed0, the 255.255.255.0 is a default value since nothing has been mentioned about it? (192.168.1.1 is the sample IP address. Second, It would make sense to me that the lines: <> ifconfig_ed0="inet 192.168.1.1 netmask 255.255.255.0" <> & <> ifconfig_ed0="inet 192.168.1.1 netmask 0xffffff00" should be EXACTLY the same?? Since the are in the same section. Can someone tell me which line is the correct line and netmask for my machine?