[Xorp-users] Xorp User Guide
Paolo Pisati
paolo.pisati@iit.cnr.it
Wed, 14 Apr 2004 14:07:49 +0200
On Wed, 14 Apr 2004 11:07:21 +0100, Adam Greenhalgh <adam@hiddennet.net>
wrote:
> Paolo,
>
> Have you tried these two documents ? Secondly, if you find that a part
> of xorp isn't working how you'd expect try the cvs version as the 0.5
> release is quite different from the current cvs version. The 1.0 release
> should be available soon.
> http://www.xorp.org/releases/current/docs/rtrmgr/xorpsh_userguide.pdf
>
> http://www.xorp.org/releases/current/docs/rtrmgr/rtrmgr.pdf
Actually I'm already following cvs HEAD, and yes, i read both the docs
you mentioned above....
> The other thing I can suggest is you look at the example config files in
> the source code.
I think it would be simpler if I first explain what i want to do.
Well, my goal (at least now) is to setup a simple network (a small LAN) to
study the
behaviour of XORP.
Right now, this is my setup:
..REAL_WORLD..
| | |
xl1 | | | xl1
PC1 ... PCN
xl0 | | | xl0
\ | /
\ | /
-------
192.168.0.x | HUB | <= I know it would be better to have a switch...
=P
-------
| xl0
XORP
| xl1
|
..REAL_WORLD..
All the boxs are running FreeBSD-4.9-STABLE, and the NICs are all
3Com-905C (Xl0 for the
LAN and xl1 for the outside world)
My first step would be to setup XORP on the XORP-BOX with a set of dummy
rules,
then send packets from the PCx box toward XORP and verify that the packets
are
routed correctly according to my rule set.
It would be nice to have a log facility, something like:
"packet $PACKET_DATA_HERE hit rule $RULE_DATA_HERE passed to
$DESTINATION_MODULE"
or something similar.
This is the beginning of my config.boot (copied from my working copy
to $PREFIX/xorp):
interfaces {
interface xl0 {
description: "control interface"
vif xl0 {
address 192.168.0.1 {
prefix-length: 24
broadcast: 192.168.0.255
}
}
}
}
and now, if i would like to route the packets received on xl0 of XORP-BOX
and
log the processing of these packets somewhere, what should i add?
Does it make any sense the following snippet?
protocols {
static_routes {
route4 10.0.0.0/16 {
nexthop: 127.0.0.1
}
}
}
So i can tcpdump my loopback to see if something passes on it...
(actually, if i launch XORP with this setup it simply core dump due
to missing module (static_routes) in $PREFIX/xorp/static_routes)
If you have a better idea, i'm all ears...
Thank you.
--
P.
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/