Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 1999 15:48:21 -0400 (EDT)
From:      "Joe \"Marcus\" Clarke" <marcus@miami.edu>
To:        akhar <jolicom@videotron.ca>
Cc:        misc@openbsd.org, questions@FreeBSD.ORG
Subject:   Re: Network doesn't work anymore!
Message-ID:  <Pine.OSF.4.10.9908291543001.9496-100000@jaguar.ir.miami.edu>
In-Reply-To: <37C98B4D.C976F4E7@videotron.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
I don't know what you did to make the broadcast on your xl0 interface be
all FFs, but it looks like you need only two routes for your system:

on your NT box:

route add default 192.168.0.1

on your OpenBSD box:

route add default 24.200.141.1

Now, on FreeBSD, you must set things up so that interfaces forward packets
(i.e. switch packets).  In FreeBSD, this is accomplished by setting
gateway_enable="YES".  If you don't set that, then the interfaces will not
switch packets (i.e. packets coming in on 192.168.0.1 bound for the
Internet will be dropped).  I'd also look at your ifconfig setup for xl0.
It should be something like:

ifconfig xl0 inet 24.200.141.104 netmask 255.255.255.0

Don't add any extra options unless you need to for media purposes.

Joe Clarke

On Sun, 29 Aug 1999, akhar wrote:

> I have OpenBSD setup as my gateway and server for my networkit
> interrfaces with the internet via cable modem on xl0 and with the
> intranet on ne3. I have already inquired help from the different
> mailling lists  and for an hour my network worked! Until I rebooted. Now
> I'm stuck I don't know what is wrong! all I can say is that I can do a
> tracert from an NT box to my ISP in 3 minutes with two hops: my gateway
> and the ISP. here are listed some of my different files in /etc
> resolv.conf
> domain videotron.ca
> nameserver 127.0.0.1
> nameserver 205.... (I can't quite remenber)
> nameserver 205.... (samething)
> 
> hosts:
> 127.0.0.1 localhost
> 127.0.0.1 sphinx.home.foo sphinx
> 192.168.0.1 sphinx.home.foo sphinx
> 192.168.0.2 tetis.home.foo sphinx #NT box
> 
> mygate:
> 192.168.0.1
> 
> myname:
> sphinx
> 
> sphinx# netstat -nr
> Routing tables
> 
> Internet:
> Destination            Gateway               Flags     Refs     Use
> Mtu  Interface
> default                24.200.141.1          UGS         0       44
> -  xl0
> 24.200.141/24      link#2                  UC            0        0
> -  xl0
> 24.200.141.1       8:0:3e:16:1b:59     UHL         1        4      -
> xl0
> 24.200.141.104   127.0.0.1              UGHS      0        0      -  lo0
> 
> 127/8                  127.0.0.1              UGRS       0        0
> -  lo0
> 127.0.0.1              127.0.0.1            UH           3       24
> -  lo0
> 192.168.0/24       link#1                   UC           0        0
> -  ne3 =>
> 192.168/16         127.0.0.0              URS         0        0      -
> lo0
> 192.168.0.2        0:e0:29:39:19:db   UHL         2     1408    -  ne3
> 224/4                  127.0.0.1              URS         0
> 0      -  lo0
> 
> Encap:
> Source address/netmask          Port  Destination address/netmask
> Port  Prot
> o SA(Address/SPI/Proto)
> 
> sphinx# ifconfig -a
> lo0: flags=8009<UP,LOOPBACK,MULTICAST>
>         inet 127.0.0.1 netmask 0xff000000
> lo1: flags=8008<LOOPBACK,MULTICAST>
> ne3: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST>
>         media: Ethernet autoselect (10baseT)
>         inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
> xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>
>         media: Ethernet 10baseT (10baseT half-duplex)
>         inet 24.200.141.104 netmask 0xffffff00 broadcast 255.255.255.255
> 
> sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST>
> sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST>
> ppp0: flags=8010<POINTOPOINT,MULTICAST>
> ppp1: flags=8010<POINTOPOINT,MULTICAST>
> tun0: flags=10<POINTOPOINT>
> tun1: flags=10<POINTOPOINT>
> enc0: flags=8<LOOPBACK>
> bridge0: flags=0<>
> bridge1: flags=0<>
> 
> What is wrong?? If possible could some give me an exemple of the content
> of the different files related to networking and/or a checklist of what
> to configure.
> Thank you in advance
> Akhar
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.10.9908291543001.9496-100000>