Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 May 2007 10:56:56 -0700 (PDT)
From:      georgedonnelly <me@georgedonnelly.com>
To:        freebsd-questions@freebsd.org
Subject:   Static Routes Questions
Message-ID:  <10687376.post@talk.nabble.com>

Next in thread | Raw E-Mail | Index | Archive | Help

I have a small network at my colo provider.

Colo Provider
          |
My HP 2650
    |          |
server1   serverN

I want to setup static routes on my servers so that my colo provider won't
bill me for traffic among my servers (backups, portsnap, cvsup, etc.). IOW,
I want to route locally for my local traffic.

I use FreeBSD 6.2 on my servers. I read the FreeBSD handbook on this and it
looks like i should do this:

route add -net 0.0.0/24 0.0.0.83

where 0.0.0/24 is the C class I have from my provider and 0.0.0.83 is the IP
address of my server (one of them/any of them).

However, this route appears to already exist as i get this error when
running that route command:

route: writing to routing socket: File exists
add net 0.0.0: gateway 0.0.0.83: route already in table

 # netstat -nr
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            0.0.0.1        UGS         0   154237    em0
0.0.0/24       link#1             UC          0        0    em0
0.0.0.1        00:d0:03:15:7c:0a  UHLW        2        0    em0   1155
0.0.0.40       00:30:48:88:d9:98  UHLW        1    41787    em0   1198
0.0.0.83       00:30:48:76:84:ac  UHLW        1     3708    lo0
127.0.0.1          127.0.0.1          UH          0    77453    lo0

(real ips obscured)

Do I need to use a private ip block (eg 192.168.x.x) for this? 

Can I use "real"/routeable ips in a static route?

Does FreeBSD take care of this for me automatically?

Or is this simply impossible?

Thanks.
-- 
View this message in context: http://www.nabble.com/Static-Routes-Questions-tf3779299.html#a10687376
Sent from the freebsd-questions mailing list archive at Nabble.com.




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?10687376.post>