Date: Wed, 9 Jun 1999 14:03:39 -0400 (EDT) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: genkin@usa.net (ARCADY GENKIN) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Configuring local networking Message-ID: <199906091803.OAA06179@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <19990609170211.24018.qmail@aw164.netaddress.usa.net> from ARCADY GENKIN at "Jun 9, 99 11:02:11 am"
next in thread | previous in thread | raw e-mail | index | archive | help
ARCADY GENKIN wrote, > Hi all: > > I have new intstallation of FreeBSD on an i486. It has 2 nics in it, > both ne2000, which are recognised correctly as ed0 and ed1, after I > recompiled the kernel. Great. > I read through networking part of the Handbook at FreeBSD's website, > but it only seems to explain it conceptually -- there are no examples > of ifconfig and route commands that I need to issue. > > I have some Linux experience, but it seems that Freebsd's versions of > ifconfig and route have different format. I know that man pages should > be my resource, but due to disk space limitations, I can't really > afford installing them on that machine. Are there online versions of > the man pages perhaps? Yes, there are, http://www.freebsd.org/docs.html#man But I would really suggest installing manpages on your system. They do not take up a lot of space compared to their value, % du -s /usr/share/man/ 5718 /usr/share/man/ > I wrote in /etc/host "door", /etc/hosts: > > 127.0.0.1 localhost.wgaf.net localhost > 192.168.1.1 door.wgaf.net door > 192.168.1.2 main.wgaf.net main > > My /etc/host.conf: > hosts > bind > > My /etc/resolve.conf: > domain wgaf.net > nameserver 204.101.251.1 > > Would anyone be as kind as give me an example of ifconfig and route to > assign 192.168.1.1 to ed1, and to allow me at least ping my other > machine (main, 192.168.1.2). Once I'll be able to telnet and ftp > between them, life will be much easier. On the command line, # ifconfig ed1 inet 192.168.1.1 Should suffice. In /etc/rc.conf, ifconfig_ed1="inet 192.168.1.1" Should work. As for routing, no additional 'custom' routing is required provided that you are not doing anything too out of the ordinary; ifconfig sets up the basic routing for that interface for you. You should also have a default route though. At the command line, # route add default 'your_gateway' Or in /etc/rc.conf, defaultrouter="'your_gateway'" HTH. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906091803.OAA06179>