Date: Thu, 8 Jul 2004 10:42:40 -0400 (EDT) From: "Steve Bertrand" <iaccounts@ibctech.ca> To: freebsd-questions@freebsd.org Subject: Re: Network configuration in FreeBSD 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>
next in thread | previous in thread | raw e-mail | index | archive | help
>> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4528.209.167.16.15.1089297760.squirrel>