Date: Sat, 15 Apr 2006 13:33:10 +0200 From: Benjamin Lutz <benlutz@datacomm.ch> To: freebsd-questions@freebsd.org Subject: Re: freeBSD user Message-ID: <200604151333.16398.benlutz@datacomm.ch> In-Reply-To: <22ce4d6f0604150308x75e25a5djeb0f8ce6ac6b6e2b@mail.gmail.com> References: <22ce4d6f0604150308x75e25a5djeb0f8ce6ac6b6e2b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604151333.16398.benlutz>