Documentation

recordpeerresetindex

Name

bgp router peer recv -  feed C-BGP with real BGP messages

Synopsis

recv <mrt-record> 

Arguments

mrt-record
BGP message in ASCII MRT format

Description

This command feeds one router with real BGP messages through one peer. The specified peer must be virtual (see bgp router peer virtual). The BGP message must be provided in ASCII MRT format. Only UPDATE (A) and WITHDRAW (W) messages are accepted.

The MRT messages syntax is as follows: BGP4|<time>|A|<router>|<as>|<prefix>|<path>|<origin>|<next-hop>|<pref>|<med>|
BGP4|<time>|W|<router>|<as>|<prefix>
where the time field is an integer representing the time when the message was received (this field is currently not used by C-BGP). The router field contains the IP address of the router where the route was collected. The as field is the ASN of the router where the route was collected. The prefix field represents the IP prefix of the route. The path field is the AS-path of the route. It must be a space-separated list of AS numbers. The origin field contains the origin of the route. The origin can be one of IGP, EGP or INCOMPLETE. The pref field contains the value of the LOCAL-PREF attribute of the route. It must be a positive integer. Finally, the med field contains the value of the MED attribute of the route. It must also be a positive integer.

Example: cbgp> bgp router 0.1.0.1 peer 0.2.0.1 recv "BGP4|0|A|10.0.0.1|1|30.0.1/24|20 30|IGP|20.0.0.1|0|0|"

See also

Use command virtual to make a peer virtual.