[Xorp-users] Fw: Error loading xorp config file
victor omwando
vommwa at yahoo.com
Thu Jun 18 06:54:10 PDT 2009
Hi, I'm getting the following error when I try to load the attached
xorp config file using xorp_rtrmgr's -b command line switch. The error
occurs somewhere in my policy statements, but I can't for the life of
me see what is wrong. Any quick help will be greatly appreciated. I'm
running xorp 1.6. This happens on both an Ubuntu and Debian
installation of xorp. Note that this is a repost, but I have just included the config.boot file in the email text rather than as an attachment.
[ 2009/06/18 07:31:52 ERROR xorp_rtrmgr:520 RTRMGR +349 main_rtrmgr.cc run ] rtrmgr shutting down due to an init error: PARSE ERROR [Config File /hosthome/r1.config.boot, line 84]: syntax error; Last symbol parsed was "network4-list"
interfaces {
interface "eth0" {
description: "data"
disable: false
vif "eth0" {
disable: false
address 100.100.100.2 {
prefix-length: 30
broadcast: 100.100.100.2
disable: false
}
}
vif "loopback" {
disable: false
address 172.160.1.1 {
prefix-length: 32
broadcast: 172.160.1.1
disable: false
}
}
}
}
fea {
unicast-forwarding4 {
disable: false
}
}
protocols {
bgp {
bgp-id: 172.160.1.1
local-as: 300
peer 130.0.2.5 {
local-ip: 130.0.1.4
as: 300
next-hop: 130.0.1.4
}
peer 130.0.3.4 {
local-ip: 130.0.1.4
as: 300
next-hop: 130.0.1.4
}
peer 100.100.100.1 {
local-ip: 100.100.100.0
as: 100
next-hop: 100.100.100.0
}
export: "redistpolicy1,exportpolicies"
import: "importpolicies"
}
static {
disable: false
route 172.160.0.0/16 {
next-hop: 200.200.200.0
}
}
}
policy {
network4-list netlist1 {
network 0.0.0.0/8
network 10.0.0.0/8
network 127.0.0.0/8
network 169.254.0.0/16
network 172.0.0.0/12
network 172.160.0.0/16
network 192.0.2.0/24
network 192.168.0.0/16
network 224.0.0.0/3
}
policy-statement redistpolicy1 {
term redist1 {
from {
protocol: "static"
network4: 100.200.0.0/16
}
}
}
policy-statement importpolicies {
term impterm1 {
from {
neighbor: 100.100.100.1
network4-list: netlist1
}
then {
reject
}
}
term impterm2 {
from {
nexthop4: 100.100.100.1
}
then {
localpref: 120
accept
}
}
term impterm3 {
then {
localpref: 100
accept
}
}
}
policy-statement exportpolicies {
term expterm1 {
to {
neighbor: 100.100.100.1
network4 != 172.160.0.0/16
}
then {
reject
}
}
term expterm2 {
then {
accept
}
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20090618/c48a4d1f/attachment-0001.html
More information about the Xorp-users
mailing list