From owner-freebsd-questions@FreeBSD.ORG Sun Mar 13 06:01:57 2005 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 A110116A4CE for ; Sun, 13 Mar 2005 06:01:57 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1593D43D2F for ; Sun, 13 Mar 2005 06:01:57 +0000 (GMT) (envelope-from doug@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.13.1/8.13.1) with ESMTP id j2D5xSZ1094604; Sun, 13 Mar 2005 00:59:28 -0500 (EST) (envelope-from doug@fledge.watson.org) Received: from localhost (doug@localhost)j2D5xSST094601; Sun, 13 Mar 2005 05:59:28 GMT (envelope-from doug@fledge.watson.org) Date: Sun, 13 Mar 2005 05:59:28 +0000 (GMT) From: doug To: Cheezy Vines In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: connecting a FreeBSD-4.10 to Internet using DSL with static ip address 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: Sun, 13 Mar 2005 06:01:57 -0000 If your ISP does not use PPPoE it is really quite simple. I included my laptop rc.conf just to show it plays no part: hostname="mneme.boltsys.com" moused_enable="YES" sshd_enable="YES" usbd_enable="YES" linux_enable="YES" nfs_client_enable="YES" nfs_server_enable="YES" nfs_reserved_port_only="YES" rpcbind_enable="YES" I take this system around to a site using cable, dsl, my office where I connect via a wireless network and, under duress dial-up. For that reason I boot up and then connect. Every where except for the office that is as simple as: dhclient ep0 as that the antique NIC I use. Both the cable modem and the DSL modem I connect to provide DHCP on the inside. On the outside, the cable modem seems to get a fixed IP from its network. My DSL connection uses 192.168.0 addresses but all you have to do is connect to the modem as a gateway. My wireless setup: ifconfig wi0 wep wepkey 0x... dhclient wi0 If your modem has a fixed IP adding defaultrouter="xxx.xxx.xxx.xxx" ifconfig_nic0="inet xxx.xxx.xxx.xxx netmask 255.255.255.0" or ifconfig_nic0="DHCP" to rc.conf should be all you need. You can of course do this manually by: ifconfig nic0 add inet xxx.xxx.xxx.xxx netmask 255.255.255.0 route add default xxx.xxx.xxx.xxx I would then first try to ping an IP address and then a host name. If your ISPs DNS really is bad, you can change the hostname to localhost to avoid all the dns timeouts. If it all works, netstat -nr will have a line something like: Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.23.3 UGS 0 12052 wi0 I hope this helps On Sat, 12 Mar 2005, Cheezy Vines wrote: > Hello everyone! > > I have a FreeBSD-4.10 machine and a newly connected DSL with static ip > address. The DSL connection setup uses an ADSL modem (SMC7901BRA) > which has 1 connection to my phone line and 1 connection to my LAN > card using UTP cable. In Windows XP setup, the process of setting up > Internet is just as easy as configuring the TCP/IP prpoerties with the > static ip address given to me and other details such as gateway, dns, > subnet mask etc. > > My machine has a dual-boot WinXP and FreeBSD-4.10. As I've said above, > I can easily connect to the Internet using the WinXP. But, I want to > try FreeBSD to connect to the Internet, but it doesn't work. > > Here's what I did to test if I can connect to Internet via DSL using FreeBSD: > 1. Reboot or boot to FreeBSD-4.10 > 2. Login as root > 3. /stand/sysinstall to assign IP address, gateway, and dns > 4. Reboot machine to make sure new IP settings take effect > 5. Do an ifconfig and see that the IP settings are correct > 6. I can ping my own IP address (static IP address of the DSL assigned > by my ISP) > 7. When I try to ping the ISP's given gateway, I receive "ping to: > Host is down". > 8. Seeing the modem status, the "LAN" and "SYNC" signals are up but > the "DATA" is off. > > I have tried searching the net with FreeBSD+DSL but all I can read is > about "PPPoE" which requires a "username" and "password" which I don't > have. My DSL account is an "always on" account with a static IP > address and I guess it doesnt have a username/password for connection > to the ISP. > > Does FreeBSD need to detect my DSL modem if it is connected to the NIC > using a UTP cable connected to the modem? Here's my setup: > > [DSL modem]<--------->[DSL Provider] (provides static IP address) > | > | > | > [FreeBSD's LAN card] > > Does anybody has an experience connecting FreeBSD to a DSL with a > static IP address and has similar setup above? > > Actually my real purpose is to use FreeBSD as LAN gateway using the > DSL connection. But I wanna try first connecting the FreeBSD machine > as a stand-alone PC which uses the simple setup above. If this setup > works, the gateeway setup will surely work too. > > Thank you very much! > _______________________________________________ > 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" >