Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 May 2007 10:56:56 -0700 (PDT)
From:      georgedonnelly <>
Subject:   Static Routes Questions
Message-ID:  <>

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

where 0.0.0/24 is the C class I have from my provider and 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 route already in table

 # netstat -nr
Routing tables

Destination        Gateway            Flags    Refs      Use  Netif Expire
default          UGS         0   154237    em0
0.0.0/24       link#1             UC          0        0    em0        00:d0:03:15:7c:0a  UHLW        2        0    em0   1155       00:30:48:88:d9:98  UHLW        1    41787    em0   1198       00:30:48:76:84:ac  UHLW        1     3708    lo0          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?

View this message in context:
Sent from the freebsd-questions mailing list archive at

Want to link to this message? Use this URL: <>