From owner-freebsd-questions@FreeBSD.ORG Sat Apr 15 11:33:23 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 7450A16A407 for ; Sat, 15 Apr 2006 11:33:23 +0000 (UTC) (envelope-from benlutz@datacomm.ch) Received: from maxlor.mine.nu (c-213-160-32-54.customer.ggaweb.ch [213.160.32.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id C102A43D46 for ; Sat, 15 Apr 2006 11:33:22 +0000 (GMT) (envelope-from benlutz@datacomm.ch) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id D1ACC2E09B for ; Sat, 15 Apr 2006 13:33:21 +0200 (CEST) X-Virus-Scanned: amavisd-new at atlantis.intranet Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kJK-sVqHfogm for ; Sat, 15 Apr 2006 13:33:21 +0200 (CEST) Received: from mini.intranet (mini.intranet [10.0.0.17]) by maxlor.mine.nu (Postfix) with ESMTP id 8B93E2E066 for ; Sat, 15 Apr 2006 13:33:21 +0200 (CEST) From: Benjamin Lutz To: freebsd-questions@freebsd.org Date: Sat, 15 Apr 2006 13:33:10 +0200 User-Agent: KMail/1.8.3 References: <22ce4d6f0604150308x75e25a5djeb0f8ce6ac6b6e2b@mail.gmail.com> In-Reply-To: <22ce4d6f0604150308x75e25a5djeb0f8ce6ac6b6e2b@mail.gmail.com> X-Face: $Ov27?7*N,h60fIEfNJdb!m,@#4T/d; 1hw|W0zvsHM(a$Yn6BYQ0^SEEXvi8>D`|V*F"=?iso-8859-1?q?=5F+R=0A?= 2@Aq>+mNb4`,'[[%z9v0Fa~]AD1}xQO3|>b.z&}l#R-_(P`?@Mz"kS; XC>Eti,i3>%@g?4f,=?iso-8859-1?q?=5Cc7=7CGh=0A?= =?iso-8859-1?q?_wb=26ky=24b2PJ=5E=5C0b83NkLsFKv=7CsmL/cI4UD=25Tu8alAD?= MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3620382.IYyLjLoI5Y"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200604151333.16398.benlutz@datacomm.ch> Subject: Re: freeBSD user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 11:33:23 -0000 --nextPart3620382.IYyLjLoI5Y Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 15 April 2006 12:08, astalus razvan wrote: > Hy.Sorry if I disturb you.My name is Marius ,and i am a FreeBSD user.I lo= ve > this OS.A few days ago I've installed freeBSD on an Pentium 2 machine at > 233 Mhz,with a Realtek RTL\8019 network card.I've configured the network > card but there is a problem.I can ''ping'' myself,but I can't ''ping'' > anyone on the LAN.I can't see computers on LAN,but when i scan myself from > another computer with 'LANguard' i can see my IP, my MAC,my open ports.No= te > that ''ifconfig'' command says that everything is OK , LAN uses DHCP and > many computers on LAN uses Windows OS. =46irst, here's the relevant section in the handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-se= tup.html Now, for network connectivity to work properly, you need three things: The= =20 interface must have an IP assigned to it, you need routing information=20 (usually that means that you need to set a default route yourself, routing= =20 for your subnet is configured automatically when you set an IP), and last=20 you'll probably want to have a DNS server set. If you are using DHCP, you need this entry in /etc/rc.conf: ifconfig_rl0=3D"DHCP" and everything should work. If you don't have DHCP, or you wish to check th= e=20 settings you got through DHCP, do this: * You can see your current IP by typing "ifconfig". You can assign a new IP with "ifconfig rl0 1.2.3.4". You can automatically assign an IP on startup by adding the following line to your /etc/rc.conf: ifconfig_rl0=3D"inet 1.2.3.4 netmask 0xffffff00" * You can see the current default route (also referred to as default gatewa= y) by typing "netstat -rn". The line starting with "default" (or 0.0.0.0 on Non-FreeBSD systems) is your default route. If you don't have one, you can set one with "route add default 1.2.3.4". The IP you specify there should be the IP of your firewall or router. To make this setting apply on start= up, add this line to your /etc/rc.conf: defaultrouter=3D"1.2.3.4" Again, the IP there is your router's IP. * You can see the currently set DNS server by looking at /etc/resolv.conf. You can add DNS servers my modifying that file. A correct entry looks like this: nameserver 4.2.2.4 If these settings are all correct, and you still don't have connectivity, t= he=20 cause is one of the following: * Your networking card is broken. Your Realtek card is of extremely low quality, and they break frequently in unexpected ways. I know, I've had it happen to me too. * You have a firewall active on your FreeBSD system. FreeBSD ships with thr= ee different firewalls. The simplest thing is to disable them for now. PF you can disable with the "pfctl -d" command. IPFW you can disable with "ipfw disable firewall". And last, ipf you can disable with "ipf -D". * Your IP settings are simply incorrect, but you don't recognize that. If y= ou still haven't solved the problem by now, post some more details, like the output of the "ifconfig" and "netstat -rn" commands as well as the general layout of your LAN. Hope this helps! Cheers Benjamin --nextPart3620382.IYyLjLoI5Y Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEQNn8gShs4qbRdeQRAgYAAJ9ScTIOtxVH4U0u4I9R7Q76TkP8/QCfWrXX 3foPrVZ/9Exxq6xBgCIvicY= =hVDS -----END PGP SIGNATURE----- --nextPart3620382.IYyLjLoI5Y--