Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Apr 2004 17:45:46 +0200
From:      "RazorOnFreeBSD" <yann.luppo@attglobal.net>
To:        "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz>, "Remko Lodder" <remko@elvandar.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Connect to Internet
Message-ID:  <041e01c41cb7$6663b5a0$8215670c@razorwork>
References:  <03b601c41caa$56d6c3f0$8215670c@razorwork> <40746401.3080505@elvandar.org> <40746D7A.7040001@daleco.biz>

next in thread | previous in thread | raw e-mail | index | archive | help
Ok I tried like you said Kevin to do a traceroute on 12.103.21.1 wich is
what ISP call "default gateway".
It didn't work, the result looked like this :

1 * * *
2 * * *
3 * * *
4 * * *
etc....

I wasn't patient enough for the fifth one!
So I looked in resolv.conf and there was the IP of a DNS server :
12.127.17.83. I know this one works because I'm using it under windows
currently.
I decided to try this command : route add default 12.103.21.1
and maybe I was wrong, but I put this address also in the resolv.conf file
before the other DNS entry.
Then I rebooted and Traceroute and same results......

1 * * *
2 * * *
3 * * *
4 * * *
etc....

what do you think ?


----- Original Message ----- 
From: "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz>
To: "Remko Lodder" <remko@elvandar.org>
Cc: "RazorOnFreeBSD" <yann.luppo@attglobal.net>;
<freebsd-questions@freebsd.org>
Sent: Wednesday, April 07, 2004 11:07 PM
Subject: Re: Connect to Internet


> Remko Lodder wrote:
>
> > RazorOnFreeBSD wrote:
> >
> >> Hello,
> >>
> >> I just setup a freebsd box with the 5.1 release to be a
> >> gateway/firewall.
> >> The installation was smooth and to setup the gateway/firewall with
> >> nat a lot
> >> of sources are available on Internet.
> >> Here is my problem, I can't connect to Internet from the Freebsd box.
> >> I have DSL and my ISP is AT&T, I have a static IP wich means I don't
> >> need to run PPP to connect.
> >>
> >> FreeBSD Internet NIC is : 12.103.20.x
> >>
> >> When I type ifconfig my NIC looks fine, up and running :
> >>
> >> rl0 : 12.103.20.x
> >>
> >> For information the freebsd box contains 2 NIC's one for Internet
> >> the other for the LAN (192.168.1.1)
> >>
> >> If I ping myself no problem everything's fine, but I can't ping a web
> >> address. I don't know if it is possible under unix but I use to
> >> "ping www.yahoo.com" for example to know if it's well
> >> connected. But the best proof is when I try to install samba
> >> my freebsd gives a time out reaching the samba server on the web....
> >>
> >
> > Do you have dns servers listed in /etc/resolv.conf?
> > nameserver <nameserver>
> > nameserver <nameserver>
> >
> > arp -n -a , does that mention the router's ip and mac addres?
> >
> > Try it (:
>
>
> What's the default route?  TCP/IP requires (amongst other things)
> an address and a default route.  Here's one of mine:
>
>     % netstat -rn
>         Routing tables
>
>         Internet:
>         Destination        Gateway            Flags    Refs      Use
> Netif Expire
>         default                66.76.96.1          UGS         0
> 17570   xl0
>
> Probably your second action, after pinging localhost and your
> local IP but before pinging Yahoo, should be a ping off the
> "next-hop" gateway.  Your ISP should have told you this, and
> it should probably be in /etc/rc.conf as "defaultrouter"...
>
> Or, try traceroute(1) with some address (66.218.71.112
> will get you Yahoo!) and see what happens.
>
> If you get a "no route to host" or similar, it's your IP
> configuration; if it's "unknown host yahoo.com", it's
> your name resolution, as Remko was pointing out.
>
> If you have an IP addy but no gw, then you need to
> run, as root:
>
>     #route add default ip.of.isp.gw
>
> HTH,
>
> Kevin Kinsey
> DaleCo, S.P.
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?041e01c41cb7$6663b5a0$8215670c>