Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 May 1997 20:56:29 -0700
From:      Leland Heaton <lheaton@cts.com>
To:        freebsd-questions@freebsd.org
Subject:   Tutorial Question (packet routing)
Message-ID:  <3.0.1.32.19970502205629.006952a8@king.cts.com>

next in thread | raw e-mail | index | archive | help
	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?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.1.32.19970502205629.006952a8>