From owner-freebsd-questions@FreeBSD.ORG Thu Jul 8 14:42:35 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC0CF16A4CE for ; Thu, 8 Jul 2004 14:42:35 +0000 (GMT) Received: from mbox.ibctech.ca (dev.eagle.ca [209.167.58.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BB0743D5A for ; Thu, 8 Jul 2004 14:42:32 +0000 (GMT) (envelope-from iaccounts@ibctech.ca) Received: (qmail 67914 invoked by uid 1002); 8 Jul 2004 14:42:42 -0000 Received: from iaccounts@ibctech.ca by pearl.ibctech.ca by uid 89 with qmail-scanner-1.22 (clamscan: 0.73. spamassassin: 2.63. Clear:RC:1(127.0.0.1):. Processed in 1.111432 secs); 08 Jul 2004 14:42:42 -0000 Received: from unknown (HELO pearl.ibctech.ca) (127.0.0.1) by localhost.ibctech.ca with SMTP; 8 Jul 2004 14:42:40 -0000 Received: from 209.167.16.15 (SquirrelMail authenticated user steve@ibctech.ca); by pearl.ibctech.ca with HTTP; Thu, 8 Jul 2004 10:42:40 -0400 (EDT) Message-ID: <4528.209.167.16.15.1089297760.squirrel@209.167.16.15> In-Reply-To: <40ED5AAF.2070101@butsugenjitemple.org> References: <200407080152.58423.mfcardenas@prodigy.net.mx> <40ED5AAF.2070101@butsugenjitemple.org> Date: Thu, 8 Jul 2004 10:42:40 -0400 (EDT) From: "Steve Bertrand" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: Network configuration in FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2004 14:42:36 -0000 >> Am new to FreeBSD... just installed it for 2nd time today, but don't >> know what >> I did that it didn't ask me for the network configuration (ip, domain, >> etc)... once installed, is there a command to perform that task? >> >> I'm linux user, so am familiar to *nix systems, but don't know how to >> configure the network specifically on freebsd... I certainly agree with the suggestions to RTFM (Handbook), as well as sysinstall, but just for the record, the following is how you can do it from the command line. Let's assume that your network adapter is using the device name vr0 (you can look this up using the # ifconfig command), your IP address will be 192.168.0.10, your subnet mask is 255.255.255.0 your hostname is mybox.example.com, your DNS servers are 10.0.0.1 and 10.0.0.2 and finally, your default gateway is 192.168.0.1: First, edit /etc/rc.conf and add the following lines (include the quotes): ifconfig_vr0="inet 192.168.0.10 netmask 255.255.255.0" defaultrouter="192.168.0.1" hostname="mybox.example.com" Next, edit /etc/resolv.conf and add these lines: search example.com nameserver 10.0.0.1 nameserver 10.0.0.2 Now, to enable things as to not have to reboot, run the following commands: # ifconfig vr0 192.168.0.10/24 # route add default 192.168.0.1 Unless you have a firewall, you should now be able to connect to other hosts. Regards, Steve > > As another person suggested, try checking out the FreeBSD Handbook at > freebsd.org, which pretty much describes everything you need to know > when getting started w/FBSD. > > Since, no one has suggested this yet, I will: you can go back into the > installer utility by running /stand/sysinstall. The installer comes in > handy quite a bit when you don't know the actually commands to do > something (ie setting up a network interface or partitioning a disk). > > Once you run /stand/sysinstall, you can scroll all the way to the bottom > and select 'Index' and then select 'Network Interfaces'. > > HTH > -- > Don't you wish that all the people who sincerely want to help you > could agree with each other? > > /* Aaron Walker > * http://butsugenjitemple.org/~ka0ttic/ > */ > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >