Example-BGP

Host> vnuml -t bgp.xml -vB ... Host> vnuml -x start@bgp.xml -v ... Host> telnet R1 2605 Trying 192.168.3.2... Connected to R1. Escape character is '^]'. Hello, this is quagga (version 0.96.4). Copyright 1996-2002 Kunihiro Ishiguro. User Access Verification Password: bgp R1> show ip bgp BGP table version is 0, local router ID is 192.168.3.2 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network         Next Hop            Metric LocPrf Weight Path *> 0.0.0.0         0.0.0.0                  0         32768 i *  164.0.0.0        161.0.0.2                              0 65002 65004 i *>                  161.0.0.10               0             0 65004 i *> 165.0.0.0        161.0.0.2                              0 65002 65005 i *> 166.0.0.0        161.0.0.6                              0 65003 65006 i Total number of prefixes 4 R1> show ip bgp summary BGP router identifier 192.168.3.2, local AS number 65001 5 BGP AS-PATH entries 0 BGP community entries Neighbor       V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd 161.0.0.2      4 65002      15      18        0    0    0 00:12:11        2 161.0.0.6       4 65003      15      18        0    0    0 00:12:07        1 161.0.0.10      4 65004      15      18        0    0    0 00:12:07        1


 * class="title" colspan="2" | VNUML Description
 * colspan="2" |
 * colspan="2" |
 * colspan="2" |

 <!DOCTYPE vnuml SYSTEM "/usr/share/xml/vnuml/vnuml.dtd"> 1.7       bgp_example /root/.ssh/identity.pub     /usr/share/vnuml/filesystems/root_fs_tutorial /usr/share/vnuml/kernels/linux /bin/sh pts        <net name="AS3-AS6" mode="uml_switch" /> <vm name="R1"> <if id="1" net="AS1-AS2"> <ipv4 mask="255.255.255.252">161.0.0.1 </if> <if id="2" net="AS1-AS3"> <ipv4 mask="255.255.255.252">161.0.0.5 </if> <if id="3" net="AS1-AS4"> <ipv4 mask="255.255.255.252">161.0.0.9 </if> <filetree root="/usr/local/etc" when="start">/usr/share/vnuml/examples/bgp/conf/R1 <exec seq="start" type="verbatim">hostname <exec seq="start" type="verbatim">rm -f /tmp/bgpd.debug <exec seq="start" type="verbatim">/usr/local/sbin/zebra -f /usr/local/etc/zebra.conf.sample -d -P 2604 <exec seq="start" type="verbatim">/usr/local/sbin/bgpd -f /usr/local/etc/bgpd.conf -d -P 2605 <exec seq="stop" type="verbatim">hostname <exec seq="stop" type="verbatim">killall zebra <exec seq="stop" type="verbatim">killall bgpd </vm> <vm name="R2"> <if id="1" net="AS1-AS2"> <ipv4 mask="255.255.255.252">161.0.0.2 </if> <if id="2" net="AS2-AS3"> <ipv4 mask="255.255.255.252">162.0.0.1 </if> <if id="3" net="AS2-AS4"> <ipv4 mask="255.255.255.252">162.0.0.5 </if> <if id="4" net="AS2-AS5"> <ipv4 mask="255.255.255.252">162.0.0.9 </if> <filetree root="/usr/local/etc" when="start">/usr/share/vnuml/examples/bgp/conf/R2 <exec seq="start" type="verbatim">hostname <exec seq="start" type="verbatim">rm -f /tmp/bgpd.debug <exec seq="start" type="verbatim">/usr/local/sbin/zebra -f /usr/local/etc/zebra.conf.sample -d -P 2604 <exec seq="start" type="verbatim">/usr/local/sbin/bgpd -f /usr/local/etc/bgpd.conf -d -P 2605 <exec seq="stop" type="verbatim">hostname <exec seq="stop" type="verbatim">killall zebra <exec seq="stop" type="verbatim">killall bgpd </vm> <vm name="R3"> <if id="1" net="AS1-AS3"> <ipv4 mask="255.255.255.252">161.0.0.6 </if> <if id="2" net="AS2-AS3"> <ipv4 mask="255.255.255.252">162.0.0.2 </if> <if id="3" net="AS3-AS6"> <ipv4 mask="255.255.255.252">163.0.0.1 </if> <filetree root="/usr/local/etc" when="start">/usr/share/vnuml/examples/bgp/conf/R3 <exec seq="start" type="verbatim">hostname <exec seq="start" type="verbatim">rm -f /tmp/bgpd.debug <exec seq="start" type="verbatim">/usr/local/sbin/zebra -f /usr/local/etc/zebra.conf.sample -d -P 2604 <exec seq="start" type="verbatim">/usr/local/sbin/bgpd -f /usr/local/etc/bgpd.conf -d -P 2605 <exec seq="stop" type="verbatim">hostname <exec seq="stop" type="verbatim">killall zebra <exec seq="stop" type="verbatim">killall bgpd </vm> <vm name="R4"> <if id="1" net="AS1-AS4"> <ipv4 mask="255.255.255.252">161.0.0.10 </if> <if id="2" net="AS2-AS4"> <ipv4 mask="255.255.255.252">162.0.0.6 </if> <filetree root="/usr/local/etc" when="start">/usr/share/vnuml/examples/bgp/conf/R4 <exec seq="start" type="verbatim">hostname <exec seq="start" type="verbatim">rm -f /tmp/bgpd.debug <exec seq="start" type="verbatim">/usr/local/sbin/zebra -f /usr/local/etc/zebra.conf.sample -d -P 2604 <exec seq="start" type="verbatim">/usr/local/sbin/bgpd -f /usr/local/etc/bgpd.conf -d -P 2605 <exec seq="stop" type="verbatim">hostname <exec seq="stop" type="verbatim">killall zebra <exec seq="stop" type="verbatim">killall bgpd </vm> <vm name="R5"> <if id="1" net="AS2-AS5"> <ipv4 mask="255.255.255.252">162.0.0.10 </if> <filetree root="/usr/local/etc" when="start">/usr/share/vnuml/examples/bgp/conf/R5 <exec seq="start" type="verbatim">hostname <exec seq="start" type="verbatim">rm -f /tmp/bgpd.debug <exec seq="start" type="verbatim">/usr/local/sbin/zebra -f /usr/local/etc/zebra.conf.sample -d -P 2604 <exec seq="start" type="verbatim">/usr/local/sbin/bgpd -f /usr/local/etc/bgpd.conf -d -P 2605 <exec seq="stop" type="verbatim">hostname <exec seq="stop" type="verbatim">killall zebra <exec seq="stop" type="verbatim">killall bgpd </vm> <vm name="R6"> <if id="1" net="AS3-AS6"> <ipv4 mask="255.255.255.252">163.0.0.2 </if> <filetree root="/usr/local/etc" when="start">/usr/share/vnuml/examples/bgp/conf/R6 <exec seq="start" type="verbatim">hostname <exec seq="start" type="verbatim">rm -f /tmp/bgpd.debug <exec seq="start" type="verbatim">/usr/local/sbin/zebra -f /usr/local/etc/zebra.conf.sample -d -P 2604 <exec seq="start" type="verbatim">/usr/local/sbin/bgpd -f /usr/local/etc/bgpd.conf -d -P 2605 <exec seq="stop" type="verbatim">hostname <exec seq="stop" type="verbatim">killall zebra <exec seq="stop" type="verbatim">killall bgpd </vm>


 * class="title" colspan="2" | Old Releases
 * colspan="2" |
 * colspan="2" |
 * colspan="2" |


 * [1.3/bgp.html 1.3]
 * [1.6/bgp.html 1.6]


 * colspan="2" |
 * colspan="2" |

<font face="Tahoma">''Last update: ''
 * }