/usr/share/ion/configs/ion-dtn2-example/ion-host.rc is in ion-doc 3.2.0~dfsg1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | ## begin ionadmin
# Initialization command
1 1 ""
# Start ION
s
# Add contacts (1-2 connected for 1 hr, 100 kbps)
a contact +1 +3600 1 1 100000
a contact +1 +3600 1 2 100000
a contact +1 +3600 2 1 100000
# Assign ranges (for the next hour, 1 second or less OWLT)
a range +1 +3600 1 1 1
a range +1 +3600 1 2 1
a range +1 +3600 2 2 1
# Assign production/consumption rates (dummy)
m production 100000
m consumption 100000
## end ionadmin
## begin bpadmin
1
# Add scheme (DTN w/EIDs)
a scheme dtn 'dtn2fw' 'dtn2adminep'
# the scheme will use the "gethostname" command and
# automatically create the custodian eid dtn://<hostname>.dtn
# NOTE: in this situation, the host was named host1. your
# configuration will be different.
# Alert ION which endpoints are on this host
a endpoint dtn://host1.dtn/sink q
a endpoint dtn://host1.dtn/ping q
# add the tcp convergence layer and outducts
# note that your IPs will be different
a protocol tcp 1400 100
a induct tcp 0.0.0.0:4556 tcpcli
#loopback outduct
a outduct tcp 10.1.1.8:4556 tcpclo
# outduct to dtn2 node
a outduct tcp 10.1.1.7:4556 tcpclo
# start daemons
s
## end bpadmin
## begin ipnadmin
# this may not be necessary
a plan 1 tcp/10.1.1.8:4556
a plan 2 tcp/10.1.1.7:4556
## end ipnadmin
## begin dtn2admin
# note that the "dtn:" is omitted from the routing plans.
a plan //host1.dtn x tcp/10.1.1.8:4556
a plan //dtn2box.dtn x tcp/10.1.1.7:4556
# plans support an * character as a wildcard.
# a default route would look like this
# a plan //* f dtn://dtn2box.dtn
# this will use dtn2box.dtn as the "next hop"
## end dtn2admin
|