Skip to content

Instantly share code, notes, and snippets.

@kongou-ae
kongou-ae / result of show_ip_route.py
Created April 6, 2014 11:06
result of show_ip_route.py
$ python show_ip_route.py
Prefix Category Nexthop_Address Outgoing_Interface
------------------- --------- ------------------- -------------------
10.10.10.0/24 CONNECTED GigabitEthernet0/2
10.10.10.110/32 LOCAL GigabitEthernet0/2
10.10.20.0/24 CONNECTED GigabitEthernet0/0
10.10.20.110/32 LOCAL GigabitEthernet0/0
10.10.30.0/24 CONNECTED GigabitEthernet0/1
10.10.30.110/32 LOCAL GigabitEthernet0/1
192.168.240.0/24 STATIC 10.10.10.254
@kongou-ae
kongou-ae / show onep status 15.3(2)T
Last active August 29, 2015 13:58
show onep status 15.3(2)T
Router#show onep status
Load for five secs: 8%/0%; one minute: 8%; five minutes: 7%
Time source is NTP, 22:58:41.929 JST Fri Apr 4 2014
Status: enabled
Version: 0.7.0
Transport: socket; Status: running; Port: 15001; ACL: 10
Transport: tls; Status: running; Port: 15002; localcert: default; client cert validation disabled
Transport: tipc; Status: disabled
@kongou-ae
kongou-ae / show onep status 15.4(2)T
Created April 6, 2014 13:46
show onep status 15.4(2)T
Router#show onep status
Load for five secs: 5%/0%; one minute: 6%; five minutes: 6%
Time source is NTP, 22:44:51.747 JST Sun Apr 6 2014
Status: enabled by: Config
Version: 1.2.0
Transport: tls; Status: running; Port: 15002; localcert: TP-self-signed-704414393; client cert validation disabled
Certificate Fingerprint SHA1: xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx
Transport: tipc; Status: disabled
Session Max Limit: 10
@kongou-ae
kongou-ae / show_acl.py
Created April 8, 2014 03:54
show_acl.py
#/usr/bin/env python
# -*- coding: utf-8 -*-
import onep
from onep.element import *
from onep.interfaces import *
from onep.routing import *
from onep.policy import *
from onep.core.util import *
@kongou-ae
kongou-ae / dns pri-fetch test page
Last active August 29, 2015 14:01
DNS Pre-fetc test page
<html>
<head>
<meta http-equiv="x-dns-prefetch-control" content="on">
<link rel="dns-prefetch" href="http://1.local.">
<link rel="dns-prefetch" href="http://2.local.">
<link rel="dns-prefetch" href="http://3.local.">
<link rel="dns-prefetch" href="http://4.local.">
<link rel="dns-prefetch" href="http://5.local.">
<link rel="dns-prefetch" href="http://6.local.">
<link rel="dns-prefetch" href="http://7.local.">
@kongou-ae
kongou-ae / the result of firefox
Last active August 29, 2015 14:01
the result of firefox
May 23 22:12:04 unbound[5003:1] info: 2610:d0:3211::xxxx 3.local. A IN
May 23 22:12:04 unbound[5003:0] info: 2610:d0:3211::xxxx 3.local. AAAA IN
May 23 22:12:04 unbound[5003:0] info: 2610:d0:3211::xxxx 2.local. A IN
May 23 22:12:04 unbound[5003:0] info: 2610:d0:3211::xxxx 2.local. AAAA IN
May 23 22:12:04 unbound[5003:0] info: 2610:d0:3211::xxxx 1.local. AAAA IN
May 23 22:12:04 unbound[5003:0] info: 2610:d0:3211::xxxx 1.local. A IN
May 23 22:12:05 unbound[5003:0] info: xxx.xxx.xxx.xxx 2.local. A IN
May 23 22:12:05 unbound[5003:0] info: xxx.xxx.xxx.xxx 2.local. AAAA IN
May 23 22:12:05 unbound[5003:0] info: xxx.xxx.xxx.xxx 1.local. A IN
May 23 22:12:05 unbound[5003:0] info: xxx.xxx.xxx.xxx 3.local. A IN
@kongou-ae
kongou-ae / the result of chrome
Created May 23, 2014 13:34
the result of chrome
May 23 22:31:28 unbound[5003:1] info: 2610:d0:3211::xxxx 10.local. AAAA IN
May 23 22:31:28 unbound[5003:0] info: 2610:d0:3211::xxxx 10.local. A IN
May 23 22:31:28 unbound[5003:0] info: 2610:d0:3211::xxxx 1.local. A IN
May 23 22:31:28 unbound[5003:0] info: 2610:d0:3211::xxxx 1.local. AAAA IN
May 23 22:31:28 unbound[5003:1] info: 2610:d0:3211::xxxx 100.local. A IN
May 23 22:31:28 unbound[5003:1] info: 2610:d0:3211::xxxx 100.local. AAAA IN
May 23 22:31:28 unbound[5003:1] info: xxx.xxx.xxx.xxx 1.local. AAAA IN
May 23 22:31:29 unbound[5003:0] info: xxx.xxx.xxx.xxx 10.local. AAAA IN
May 23 22:31:29 unbound[5003:1] info: xxx.xxx.xxx.xxx 100.local. AAAA IN
May 23 22:31:29 unbound[5003:1] info: xxx.xxx.xxx.xxx 1.local. A IN
@kongou-ae
kongou-ae / the result of IE
Created May 23, 2014 14:16
the result of IE
May 23 23:06:26 unbound[5003:1] info: 2610:d0:3211:1::xxxx 1.local. A IN
May 23 23:06:32 unbound[5003:0] info: 2610:d0:3211:1::xxxx 1.local. AAAA IN
May 23 23:06:32 unbound[5003:0] info: 2610:d0:3211:1::xxxx 4.local. A IN
May 23 23:06:32 unbound[5003:0] info: 2610:d0:3211:1::xxxx 4.local. AAAA IN
May 23 23:06:32 unbound[5003:0] info: 2610:d0:3211:1::xxxx 5.local. A IN
May 23 23:06:32 unbound[5003:0] info: 2610:d0:3211:1::xxxx 5.local. AAAA IN
May 23 23:06:32 unbound[5003:0] info: 2610:d0:3211:1::xxxx 2.local. A IN
May 23 23:06:32 unbound[5003:1] info: 2610:d0:3211:1::xxxx 2.local. AAAA IN
May 23 23:06:32 unbound[5003:0] info: 2610:d0:3211:1::xxxx 3.local. A IN
May 23 23:06:32 unbound[5003:0] info: 2610:d0:3211:1::xxxx 3.local. AAAA IN
@kongou-ae
kongou-ae / The test of ACL
Last active August 29, 2015 14:02
The test of ACL
# show version
Cisco IOS Software, C890 Software (C890-UNIVERSALK9-M), Version 15.4(2)T, RELEASE SOFTWARE (fc1)
#
# show running-config interface vlan 500
Building configuration...
!
interface Vlan500
ip address 192.168.1.254 255.255.255.0
ip access-group 2001 in
@kongou-ae
kongou-ae / The test of ACL 2
Last active August 29, 2015 14:02
The test of ACL 2
gw#show running-config interface vlan 500
Load for five secs: 47%/0%; one minute: 9%; five minutes: 7%
Time source is NTP, 21:59:00.018 JST Wed Jun 4 2014
Building configuration...
Current configuration : 446 bytes
!
interface Vlan500
ip address 192.168.1.254 255.255.255.0