Re: connecting a FreeBSD-4.10 to Internet using DSL with static ip address

From: doug (doug_at_fledge.watson.org)
Date: 03/13/05

  • Next message: bsdzz: "Decent HTML editor?"
    Date: Sun, 13 Mar 2005 05:59:28 +0000 (GMT)
    To: Cheezy Vines <chisoy@gmail.com>
    
    

    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"
    >

    _______________________________________________
    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"


  • Next message: bsdzz: "Decent HTML editor?"

    Relevant Pages

    • Re: sending message to PC that is offline
      ... typical DSL or cable modem and all that stuff. ... the service's client application's own TCP connection, ... notification has to first "wake" the PC or modem - see below). ... The main problem seems to be that the ISPs I know require you (at ...
      (microsoft.public.win32.programmer.tapi)
    • connecting a FreeBSD-4.10 to Internet using DSL with static ip address
      ... I have a FreeBSD-4.10 machine and a newly connected DSL with static ip ... The DSL connection setup uses an ADSL modem ... which has 1 connection to my phone line and 1 connection to my LAN ...
      (freebsd-questions)
    • Fwd: connecting a FreeBSD-4.10 to Internet using DSL with static ip address
      ... I have a FreeBSD-4.10 machine and a newly connected DSL with static ip ... The DSL connection setup uses an ADSL modem ... which has 1 connection to my phone line and 1 connection to my LAN ...
      (freebsd-questions)
    • Re: Trouble obtaining IP address
      ... I have an old computer connected to internet via DSL modem which used to ... I don't think you've mentioned whether you've actually logged into the DSL service. ... Create a new network connection and see if that helps. ...
      (microsoft.public.windowsxp.network_web)
    • Re: [SLE] wlan0 DSL HELP
      ... and DSL0 that's ok; after I've setup wlan0 correctly on ... My view is that SuSE limit DSL YaST modul with the ethX interface and ... In ideal case you can test the wlan connection with another computer ... > (which would work as a switch in this setup). ...
      (SuSE)