Date: Sat, 18 Jul 1998 21:15:20 +0200 (CEST) From: Andrzej Bialecki <abial@nask.pl> To: gbh@clark.net Cc: freebsd-small@FreeBSD.ORG Subject: Re: Interface configuration Message-ID: <Pine.BSF.4.00.9807182108530.26004-100000@korin.warman.org.pl> In-Reply-To: <Pine.GSO.3.96.980717200102.12121I-100000@shell.clark.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 17 Jul 1998 gbh@clark.net wrote:
> I'd like some info about configuring interfaces
> with PicoBSD. I'm using the machine as a
> router with an ethernet connection to a workstation
> and a ppp connection to the Internet. If I were
> using Linux I'd use a set of commands like;
>
> # ifconfig eth0 192.168.0.2 netmask 255.255.255.0 up
ifconfig <dev_name> inet <ip_address> netmask <netmask>
> # ifconfig lo 127.0.0.1
Not needed - /etc/rc script does it basing on data from /etc/rc.conf.
> # route add -net 192.168.0.0 netmask 255.255.255.0 eth0
> # route add default ppp0
See manual for details.
As for the naming conventions: each ethernet device:
* is not visible in /dev/ hierarchy - it's just an internal construct.
so don't attempt to do a MAKEDEV... :-)
* is named after appropriate driver, e.g. DEC21140-based device is called
de0, NE2000 is called ed0 etc...
> 'netstat -r' to look at the routing table but the
> command is not included. What's a replacement?
There is no netstat in that release - it will be included in v.0.32 which
is due RSN.
Andrzej Bialecki
+---------------------+------------------------+--------------------------+
| <abial@nask.pl> | When in problem or in | if(halt_per_mth > 0) { |
| Research & Academic | doubt, run in circles, | fetch("FreeBSD"); |
| Network in Poland | scream and shout. | } |
+ --------------------+------------------------+--------------------------+
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-small" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.00.9807182108530.26004-100000>
