Documentation
Name
net add link-ptp - add a point-to-point link
Synopsis
link-ptp
[--bw=]
[--delay=]
[--depth=]
<addr-src> <iface-id> <addr-dst> <iface-id>
Arguments
- --bw=
- optional bandwidth
- --delay=
- optional delay
- --depth=
- optional number of IGP weights
- addr-src
- identifier of source node
- iface-id
- address of source node interface
- addr-dst
- identifier of destination node
- iface-id
- address of destination node interface
Description
This command adds a point-to-point link between two nodes. The nodes are identified using parameters addr-src and addr-dst.
New interfaces are created on the source and destination nodes and are connected together. The addresses of these interfaces are specified using the parameters iface-id. These parameters must include the interface IP address + a subnet length. The subnet length and prefix of both interfaces must be equal !
The following example shows how to create a simple 2 nodes topology using this command:
net add node 1.0.0.1
With the above example, nodes 1.0.0.1 and 1.0.0.2 will both have 2 interfaces: one loopback interface and one ptp interface. This can be verified using command net node X show ifaces as show in the following example:
net add node 1.0.0.2
net add link-ptp 1.0.0.1 192.168.0.1/30 1.0.0.2 192.168.0.2/30
cbgp> net node 1.0.0.1 show ifaces
lo 1.0.0.1/32
ptp 192.168.0.1/30