Junos Clue

From W9CR
Jump to navigation Jump to search

Some helpful things on junos

Junos filter BGP RIB routes based on prefix list

You need to add 'keep none' to the filter

set protocols bgp group eBGP-to-peer-v6 keep none


Shell Commands

start shell on the box

start shell 

use curl to get a file, but disable tcp keep alives which causes issues

v6
curl -6 --interface 2607:f138:0:2::5 --no-keepalive --connect-timeout 5 -vv -o /dev/null http://ubuntu-mirror-2.ps6.canonical.com/ubuntu/ls-lR.gz
v4
curl -4 --no-keepalive --connect-timeout 5 -vv -o /dev/null http://ubuntu-mirror-2.ps6.canonical.com/ubuntu/ls-lR.gz