Skip to content

Instantly share code, notes, and snippets.

View stephanbehrens's full-sized avatar

Stephan Behrens stephanbehrens

View GitHub Profile
@stephanbehrens
stephanbehrens / XML-RPC_show_route
Created December 17, 2016 10:49
XML-RPC_show_route
sbehrens@vSRX1> show route xx.xx.xx.xx/yy | display xml rpc
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/12.1X47/junos">
<rpc>
<get-route-information>
<destination>xx.xx.xx.xx/yy</destination>
</get-route-information>
</rpc>
<cli>
<banner></banner>
</cli>
@stephanbehrens
stephanbehrens / vSRX2-prefixlist
Created November 27, 2016 14:04
vSRX2-prefixlist
sbehrens@vSRX2> show configuration policy-options
prefix-list listXYZ {
50.0.0.1/32;
50.0.0.2/32;
50.0.0.3/32;
50.0.0.4/32;
}
prefix-list listA {
10.0.0.1/32;
10.0.0.2/32;
@stephanbehrens
stephanbehrens / vSRX1-prefixlist
Created November 27, 2016 14:03
vSRX1-prefixlist
sbehrens@vSRX1> show configuration policy-options
prefix-list listB {
20.0.0.1/32;
20.0.0.2/32;
20.0.0.3/32;
20.0.0.4/32;
}
prefix-list listA {
10.0.0.1/32;
10.0.0.2/32;
@stephanbehrens
stephanbehrens / vMX2-prefixlist
Created November 27, 2016 14:02
vMX2-prefixlist
sbehrens@vMX2> show configuration policy-options
prefix-list listA {
10.0.0.1/32;
10.0.0.2/32;
10.0.0.3/32;
10.0.0.4/32;
}
prefix-list listABC {
10.0.0.1/32;
11.0.0.2/32;
@stephanbehrens
stephanbehrens / vMX1-prefixlist
Created November 27, 2016 14:01
vMX1-prefixlist
sbehrens@vMX1> show configuration policy-options
prefix-list listA {
10.0.0.1/32;
10.0.0.2/32;
10.0.0.3/32;
10.0.0.4/32;
}
prefix-list listB {
20.0.0.1/32;
20.0.0.2/32;
@stephanbehrens
stephanbehrens / show_bgp_neighbor_display_xml.txt
Created November 20, 2016 14:09
show bgp neighbor | display xml
sbehrens@vMX1> show bgp neighbor | display xml
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/16.1R3/junos">
<bgp-information xmlns="http://xml.juniper.net/junos/16.1R3/junos-routing">
<bgp-peer junos:style="detail">
<peer-address>192.168.0.2+179</peer-address>
<peer-as>6100</peer-as>
<local-address>192.168.0.1+53881</local-address>
<local-as>6100</local-as>
<peer-group>internal-bgp</peer-group>
<peer-cfg-rti>master</peer-cfg-rti>
@stephanbehrens
stephanbehrens / vMX1-show_route_protocol_bgp_extensive_display_xml.txt
Last active November 20, 2016 12:53
vMX1-show_route_protocol_bgp_extensive_display_xml
sbehrens@vMX1> show route protocol bgp extensive | display xml
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/16.1R3/junos">
<route-information xmlns="http://xml.juniper.net/junos/16.1R3/junos-routing">
<!-- keepalive -->
<route-table>
<table-name>inet.0</table-name>
<destination-count>10</destination-count>
<total-route-count>11</total-route-count>
<active-route-count>10</active-route-count>
<holddown-route-count>0</holddown-route-count>