Skip to content

Instantly share code, notes, and snippets.

View lkmhaqer's full-sized avatar

Charles van Niman lkmhaqer

View GitHub Profile
butters:~$ pmacct -s -T bytes,30
SRC_IP DST_IP SH_COUNTRY DH_COUNTRY PACKETS FLOWS BYTES
172.22.150.113 172.22.150.114 -- -- 9632219 16 13533103843
104.238.172.137 192.168.137.75 GB -- 4870293 1 820355040
192.168.137.75 155.94.254.94 -- US 4837383 1 813472040
192.168.137.75 104.238.172.137 -- GB 2613786 1 320543928
155.94.254.94 192.168.137.75 US -- 2597209 1 318541888
172.22.150.114 172.22.150.113 -- -- 5152327 16 276968620
192.168.137.75 192.168.137.72 -- -- 27653 5250 14501663
107.191.116.85 192.168.137.75 US -- 32845 1
R2#sh arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 1.0.0.1 - ca02.8d0c.0038 ARPA FastEthernet2/0
Internet 1.0.0.10 172 0050.7966.6800 ARPA FastEthernet2/0
Internet 192.0.2.2 - ca02.8d0c.0000 ARPA FastEthernet0/0
Internet 198.51.100.1 0 ca03.8d0d.001c ARPA FastEthernet1/0
Internet 198.51.100.5 - ca02.8d0c.001c ARPA FastEthernet1/0
Internet 198.51.100.6 0 ca01.8d09.001c ARPA FastEthernet1/0
0.316406 Mb grep --color=auto quagga
0.527344 Mb /usr/lib/quagga/watchquagga --daemon zebra bgpd
221.121094 Mb /usr/lib/quagga/zebra --daemon -A 127.0.0.1
291.828125 Mb /usr/lib/quagga/bgpd --daemon -A 127.0.0.1
set hdr_format="!%3C %Z %[%b %d %H:%M] - %-22.22n %s"
set pager_format="[%C/%T] %s %> %n"
set attribution="%n(%u) wrote:"
set status_format="+-+ %v +My Mail+ %h:%f +-+ %s +%>-+ %b Boxes +-+ %m Messages +-+ %n New +-"
set from="my@email.tld"
set ascii_chars
#macros
macro index .c "T.\n;WN^T.\n" "Mark all messages as read"
macro index .ss "<limit>diploma|degree|pfizer|orgasm|<enter>"
root@node69:~# vtysh -c "show ip bg" | grep ">" | grep 172.20.2
*> 172.20.2.0/28 172.20.2.1 0 4242423955 i
*> 172.20.2.16/28 172.20.2.1 0 4242423955 i
*> 172.20.10.0/24 172.20.2.1 0 4242423955 i
*> 172.20.22.0/23 172.20.2.1 0 4242423955 i
*> 172.20.40.0/24 172.20.2.1 0 4242423955 4242422987 i
*> 172.20.41.0/26 172.20.2.1 0 4242423955 4242422987 i
*> 172.20.45.0/24 172.20.2.1 0 4242423955 4242422987 i
*> 172.20.63.0/24 172.20.2.1 0 4242423955 4242422002 i
*> 172.20.2.1 0 4242423955 i
juniper@tlaloc-PE1> show system uptime
Current time: 2015-08-15 13:10:59 UTC
System booted: 2013-03-23 23:27:54 UTC (124w6d 13:43 ago)
Protocols started: 2013-03-23 23:29:15 UTC (124w6d 13:41 ago)
Last configured: 2013-12-14 13:17:13 UTC (86w6d 23:53 ago) by juniper
1:10PM up 874 days, 13:43, 1 user, load averages: 0.00, 0.00, 0.00
13:05:01.971250 IP 172.22.150.121 > 172.20.11.2: ICMP echo request, id 3905, seq 1, length 64
13:05:02.979210 IP 172.22.150.121 > 172.20.11.2: ICMP echo request, id 3905, seq 2, length 64
13:05:03.987200 IP 172.22.150.121 > 172.20.11.2: ICMP echo request, id 3905, seq 3, length 64
13:05:04.995172 IP 172.22.150.121 > 172.20.11.2: ICMP echo request, id 3905, seq 4, length 64
13:05:06.003152 IP 172.22.150.121 > 172.20.11.2: ICMP echo request, id 3905, seq 5, length 64
13:05:07.011213 IP 172.22.150.121 > 172.20.11.2: ICMP echo request, id 3905, seq 6, length 64
13:05:08.019150 IP 172.22.150.121 > 172.20.11.2: ICMP echo request, id 3905, seq 7, length 64
13:05:09.027164 IP 172.22.150.121 > 172.20.11.2: ICMP echo request, id 3905, seq 8, length 64
node69.slothlogistics.net# sh ip ro 172.20.11.2
Routing entry for 172.20.11.0/24
Known via "bgp", distance 20, metric 0, best
Last update 00:14:49 ago
* 172.20.11.1, via tun-twink0r-mit
node69.slothlogistics.net# ping 172.20.11.1
PING 172.20.11.1 (172.20.11.1) 56(84) bytes of data.
64 bytes from 172.20.11.1: icmp_seq=1 ttl=64 time=39.0 ms
64 bytes from 172.20.11.1: icmp_seq=2 ttl=64 time=39.0 ms
auto lo:10
iface lo:10 inet static
address 172.22.150.126
netmask 255.255.255.255
traceroute to sl.dn42 (172.22.150.126), 20 hops max, 60 byte packets
1 vcore-gw-vce0.nixnodes.dn42 (172.22.177.78) 0.302 ms 0.293 ms 0.292 ms
2 gige-le0-edge1.core.nixnodes.dn42 (172.22.177.201) 0.291 ms 0.290 ms 0.290 ms
3 hulk-routing.mhm.dn42 (172.23.67.43) 19.985 ms 20.047 ms 20.049 ms
4 ovpn-rtm-00.sl.dn42 (172.22.150.121) 29.746 ms 29.777 ms 30.464 ms
5 ovpn-lhr-00.sl.dn42 (172.22.150.113) 41.372 ms 41.394 ms 41.395 ms
6 lo-dal-00.sl.dn42 (172.22.150.126) 180.252 ms 180.278 ms 180.278 ms