Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2000 09:59:55 -0500
From:      "Ing. Ramon F. Tecolt G." <rtecolt@uiagc.pue.uia.mx>
To:        cjclark@home.com, "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Help with NAT!
Message-ID:  <3921626B.6B6A10D8@uiagc.pue.uia.mx>
References:  <Pine.BSF.4.10.10005151136470.68664-100000@home.offwhite.net> <39202963.5DA8E727@uiagc.pue.uia.mx> <20000515225225.E55458@cc942873-a.ewndsr1.nj.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------5AAF5A0BC66B2F23A6D80E9B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Can you help me!?
I've reinstalled my FreeBSD to 3.4-Release.
Now i have the following rc.conf:

# This file now contains just the overrides from /etc/defaults/rc.conf
# please make all changes to this file.

# -- sysinstall generated deltas -- #
ifconfig_fxp0="inet 192.100.196.254  netmask 255.255.255.0"
ifconfig_xl0="inet 10.0.0.1 netmask 255.255.0.0"
ifconfig_xl0_alias0="inet 10.1.0.1 netmask 255.255.0.0"
ifconfig_xl0_alias1="inet 10.2.0.1 netmask 255.255.0.0"
ifconfig_xl0_alias2="inet 10.3.0.1 netmask 255.255.0.0"
hostname="chido.pue.uia.mx"
network_interfaces="xl0 fxp0 lo0"
moused_port="/dev/psm0"
moused_enable="YES"
saver="daemon"
keymap="spanish.iso.acc"
gateway_enable="YES"
defaultrouter="192.100.196.2"
natd_enable="YES"
firewall_enable="YES"
firewall_type="open"
natd_interface="fxp0"
natd_flags="-u -s -m -dynamic"
named_enable="YES"
named_program="/usr/sbin/named"
named_flags="-b /etc/DNS/named.boot"

anything wrong? anything else?!??


i have the following "netstat -rn" command:

Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif
Expire
default            192.100.196.2      UGSc        1    26970     fxp0
10/16              link#1             UC          0        0      xl0
10.1/16            link#1             UC          0        0      xl0
10.1.2.10          0:60:94:4c:26:ae   UHLW        0        4      xl0   
770
10.2/16            link#1             UC          0        0      xl0
10.2.0.3           0:80:ad:7c:2d:64   UHLW        1      764      xl0  
1198
10.2.0.15          0:a0:c9:97:95:d8   UHLW        0      195      xl0   
900
10.3/16            link#1             UC          0        0      xl0
127.0.0.1          127.0.0.1          UH          0        0      lo0
192.100.196        link#2             UC          0        0     fxp0
192.100.196.1      8:0:20:76:d3:4a    UHLW        0      188     fxp0   
753
192.100.196.2      0:0:c:31:a3:4d     UHLW        1        0     fxp0   
238
192.100.196.11     0:20:af:3c:c8:42   UHLW        2      554     fxp0   
668
192.100.196.14     0:80:ad:42:49:ef   UHLW        0      208     fxp0  
1106
192.100.196.17     0:60:94:b9:5c:cb   UHLW        0      102     fxp0  
1179
192.100.196.22     0:8:c7:f3:55:d1    UHLW        0     1264     fxp0  
1146


and the following "ifconfig -a" command: 

xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.0.0.1 netmask 0xffff0000 broadcast 10.0.255.255
        inet 10.1.0.1 netmask 0xffff0000 broadcast 10.1.255.255
        inet 10.2.0.1 netmask 0xffff0000 broadcast 10.2.255.255
        inet 10.3.0.1 netmask 0xffff0000 broadcast 10.3.255.255
        ether 00:10:4b:d1:e3:87 
        media: 100baseTX <half-duplex>
        supported media: autoselect 100baseTX <full-duplex> 100baseTX
<half-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP
<half-duplex> 10baseT/UTP
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.100.196.254 netmask 0xffffff00 broadcast
192.100.196.255
        ether 00:a0:c9:99:f6:10 
        media: autoselect (10baseT/UTP <full-duplex>) status: active
        supported media: autoselect 100baseTX <full-duplex> 100baseTX
10baseT/UTP <full-duplex> 10baseT/UTP
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000 

"Crist J. Clark" wrote:

> On Mon, May 15, 2000 at 11:44:19AM -0500, Ing. Ramon F. Tecolt G. wrote:
> > Here is my configuration:
>
> [snip]
>
> > ifconfig_xl0_alias0="inet 10.1.0.1 netmask 0xffffffff" # Acnet-Adnet
> > ifconfig_xl0_alias1="inet 10.2.0.1 netmask 0xffffffff" # Labs-Informatica
> > ifconfig_xl0_alias2="inet 10.3.0.1 netmask 0xffffffff" # CIA-CAADI
> > ifconfig_fxp0="inet 192.100.196.254 netmask 255.255.255.0" # Red Valida
> > ifconfig_lo0="inet 127.0.0.1"   # default loopback device configuration.
>
> [snip]
>
> > > > May 15 11:16:25 chido /kernel: arplookup 10.2.0.3 failed: host is not on
> > > > local network
> > > >
> > > > anyone knows why is happening this!? some misconfigration with the NAT?
>
> Your problem has nothing to do with NAT. It looks like you have messed
> up the netmasks on your xl0 interface. According to the entry,
>
>   ifconfig_xl0_alias1="inet 10.2.0.1 netmask 0xffffffff"
>
> The only address reachable on the 10.2.0.1 network is 10.2.0.1. Thus,
> 10.2.0.3 is not on the local network. You need to enter the actual
> netmask for that net.
> --
> Crist J. Clark                           cjclark@home.com

--
+------------------------------------------------------+
Ing. Ramon F. Tecolt Gonzalez
Network Manager & Webmaster

Direccion de Informatica
Coordinacion de Operacion

Universidad Iberoamericana - Golfo Centro
Km. 3.5 Carretera Federal
Puebla - Atlixco 72430
Col. Concepcion La Cruz
Puebla, Pue., Mx.

Office: +52 (2) 229 07 34
Fax:    +52 (2) 230 17 30
EMail:  rtecolt@uiagc.pue.uia.mx
+------------------------------------------------------+
--------------5AAF5A0BC66B2F23A6D80E9B
Content-Type: text/x-vcard; charset=us-ascii;
 name="rtecolt.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Ing. Ramon F. Tecolt G.
Content-Disposition: attachment;
 filename="rtecolt.vcf"

begin:vcard 
n:Tecólt;Ramón
tel;cell:+52 (2) 256 40 12
tel;fax:+52 (2) 230 17 30
tel;work:+52 (2) 229 07 34
x-mozilla-html:FALSE
url:http://uiagc.pue.uia.mx
org:Universidad Iberoamericana;Dirección de Informática
version:2.1
email;internet:rtecolt@uiagc.pue.uia.mx
title:SUN Network Manager - Webmaster
adr;quoted-printable:;;Km. 3.5 Carretera Federal Puebla - Atlixco=0D=0ACol. Concepcion La Cruz;Puebla;Pue;72430;Mexico
fn:Ing. Ramón F. Tecólt G.
end:vcard

--------------5AAF5A0BC66B2F23A6D80E9B--



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?3921626B.6B6A10D8>