Josh,

the table needs to be created and an interface need to be assigned to
the rdomain like:

ifconfig  em0 a.b.c.d/24 rdomain 1

then you can use it like, just for example, this:
route -T 1 add e.f.g.h/24 a.b.c.x

that does the trick.

On Tue, 19 Jul 2011 13:26:37 -0500
Josh Hoppes <[email protected]> wrote:

> I'm trying to configure bgpd to run in an alternate routing table so I
> can use it to manage black holed prefixes. When trying to specify an
> alternate routing table I get the error message "rtable id 1 does not
> exist" when starting bgpd. I've gone through route(8) and route(4) but
> can't find any information on creating a routing table. My attempts at
> creating by just adding a prefix appear to be of no use. I'm sure I
> missed something in the documentation and I would appreciate any hints
> people can provide.
> 
> This is on OpenBSD 4.9 GENERIC.MP#819 amd64
> 
> Basic bgpd.conf I'm using
> 
> # global configuration
> AS 65100
> fib-update no
> route-collector yes
> holdtime 10
> 
> # Alternate Routing Table
> rtable 1
> 
> Error output from bgpd:
> 
> # bgpd -vnf bgpd.conf
> bgpd.conf:8: rtable id 1 does not exist
> 
> error output from route:
> 
> # route -T 1 add -inet 192.168.0.0/24 127.0.0.1
> route: routing table 1: No such file or directory
> 
> Thanks in advance, and sorry for the noise.

Reply via email to