This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@vjr-17> show configuration routing-options bmp | |
| /* Rotonda */ | |
| station BMP-feed-for-RTBH-1 { | |
| /* if the session breaks, then the router tries to reestablish it every 30 seconds */ | |
| connection-mode active; | |
| /* Route Monitoring messages are sent only for peers defined under specific BGP groups */ | |
| route-monitoring { | |
| none; | |
| } | |
| station-address 10.10.8.3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| get_journal_logs() { | |
| log_type="$1" | |
| if [[ "$log_type" == "system" ]]; then | |
| args+=( "--dmesg" ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@bird1:~# # acknowledgements to the client(10.10.10.1) are withheld until the hot backup has received the corresponding data | |
| root@bird1:~# tshark -c 4 -i enp7s0 -f 'tcp and port 179' | |
| Running as user "root" and group "root". This could be dangerous. | |
| Capturing on 'enp7s0' | |
| 1 0.000000000 10.10.10.1 → 10.10.10.0 BGP 85 KEEPALIVE Message | |
| 2 0.601193559 10.10.10.0 → 10.10.10.1 TCP 66 179 → 60153 [ACK] Seq=1 Ack=20 Win=16384 Len=0 TSval=2273170037 TSecr=1268402651 | |
| 3 4.135022182 10.10.10.0 → 10.10.10.1 BGP 85 KEEPALIVE Message | |
| 4 4.135067259 10.10.10.1 → 10.10.10.0 TCP 66 60153 → 179 [ACK] Seq=20 Ack=20 Win=126 Len=0 TSval=1268406786 TSecr=2273173570 | |
| 4 packets captured | |
| root@bird1:~# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Configures Juniper router to inject a 0x0b control character to | |
| # "Shutdown Communication" field(RFC 9003) of a BGP cease NOTIFICATION message. | |
| # | |
| # Usage example: | |
| # ./shutdown-bgp-session.bash | ssh root@192.168.103.20 -p 830 -s netconf | |
| vertical_tab=$'\v' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- net/ipv6/route.c~ 2025-08-08 13:44:04.928000000 +0300 | |
| +++ net/ipv6/route.c 2025-08-08 13:48:01.448000000 +0300 | |
| @@ -2221,24 +2221,13 @@ | |
| int fib6_table_lookup(struct net *net, struct fib6_table *table, int oif, | |
| struct flowi6 *fl6, struct fib6_result *res, int strict) | |
| { | |
| - struct fib6_node *fn, *saved_fn; | |
| + struct fib6_node *fn; | |
| fn = fib6_node_lookup(&table->tb6_root, &fl6->daddr, &fl6->saddr); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| qemu-nbd --connect=/dev/nbd0 vJunos-router-23.2R1.15.qcow2 | |
| fdisk -l /dev/nbd0 | |
| mkdir -p /tmp/nbd0p2 | |
| mount -v /dev/nbd0p2 /tmp/nbd0p2 | |
| qemu-nbd --connect=/dev/nbd1 /tmp/nbd0p2/home/pfe/junos/junos-virtual-x86-64-23.2R1.15.qcow2 | |
| mkdir -p /tmp/nbd1p3 | |
| mount -t ufs -v -o ro,ufstype=44bsd /dev/nbd1p3 /tmp/nbd1p3 | |
| cp -v /tmp/nbd1p3/boot/loader.rc . | |
| umount /tmp/nbd1p3 | |
| qemu-nbd --disconnect /dev/nbd1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [edit policy-options] | |
| + prefix-list DC1-aggregate { | |
| + 10.10.0.0/23; | |
| + } | |
| [edit policy-options] | |
| + policy-statement ISP-B-out-v4 { | |
| + term conditional-announcement { | |
| + from { | |
| + prefix-list DC1-aggregate; | |
| + condition conditional-announcement; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Find IPv4 prefixes which have non-unique origin AS number, i.e. the rightmost AS number. | |
| get_origin_asn() { | |
| last_asn_elem="${1##* }" | |
| case "$last_asn_elem" in | |
| "{"*"}") | |
| # It's an AS-set. |
NewerOlder