Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Feb 2007 15:14:38 +0200
From:      "George Vanev" <george.vanev@gmail.com>
To:        "Bill Moran" <wmoran@collaborativefusion.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Routing problem
Message-ID:  <6f4f57f60702080514n388e435fmfa7d46e10723be77@mail.gmail.com>
In-Reply-To: <20070208080613.9eb65d64.wmoran@collaborativefusion.com>
References:  <6f4f57f60702080210m5d3ffbc1o33105f1b75564963@mail.gmail.com> <20070208080613.9eb65d64.wmoran@collaborativefusion.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2/8/07, Bill Moran <wmoran@collaborativefusion.com> wrote:
>
> In response to "George Vanev" <george.vanev@gmail.com>:
>
> > I have FreeBSD 6.2 box with 1 NIC and 2 IPs.
> > The first IP is to access internet, the second
> > is for the ISP's LAN.
> > Unfortunately I have internet, but no access to
> > the other network.
> >
> > I made a test. I assigned to the NIC only the local
> > IP and removed the defaultrouter. Then, of course,
> > I have no internet but was able to access the ISP's
> > network.
> >
> > I've tried everything I know, but still nothing
>
> Consider providing more details, such as the output of ifconfig and
> netstat -rn.
>
> Sure sounds like a routing issue, but I doubt anyone can say anything
> more without details.
>
> --
> Bill Moran
> Collaborative Fusion Inc.
>

You are right.

ifconfig
----------
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet 212.25.37.96 netmask 0xffffff00 broadcast 212.25.37.255
        inet 192.168.67.41 netmask 0xfffffc00 broadcast 192.168.67.255
        ether 00:17:31:e7:92:18
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
        ether 00:50:bf:d5:f1:33
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000




Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            212.25.37.1        UGS         0   458268    rl0
10/24              link#2             UC          0        0    rl1
10.0.0.2           00:15:60:ae:f7:61  UHLW        1   231827    rl1    922
10.0.0.3           00:17:08:2d:08:26  UHLW        1     1686    rl1   1004
10.0.0.255         ff:ff:ff:ff:ff:ff  UHLWb       1       67    rl1
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.64/22      link#1             UC          0        0    rl0
192.168.64.1       00:02:a5:90:a9:b6  UHLW        1        0    rl0   1200
192.168.64.3       00:17:08:58:83:8d  UHLW        1        0    rl0   1113
212.25.37          link#1             UC          0        0    rl0
212.25.37.1        00:02:a5:90:a9:b6  UHLW        2        0    rl0   1195
In this case I can't access nothing from 192.168.64/22

rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet 192.168.67.41 netmask 0xfffffc00 broadcast 192.168.67.255
        ether 00:17:31:e7:92:18
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
        ether 00:50:bf:d5:f1:33
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000



Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
10/24              link#2             UC          0        0    rl1
10.0.0.2           00:15:60:ae:f7:61  UHLW        1   232034    rl1    784
10.0.0.3           00:17:08:2d:08:26  UHLW        1     1712    rl1    866
10.0.0.255         ff:ff:ff:ff:ff:ff  UHLWb       1       67    rl1
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.64/22      link#1             UC          0        0    rl0

In this case I don't have internet, but I can access 192.168.64/22


-- 
George Vanev



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6f4f57f60702080514n388e435fmfa7d46e10723be77>