This file contains 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
cisco1# exit |
This file contains 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
auto lo | |
iface lo inet loopback | |
# 元のeth0はautoで立ち上がらせないようにしておく。 | |
#auto eth0 | |
auto eth0.200 | |
iface eth0.200 inet static | |
address 10.200.200.100 | |
netmask 255.255.0.0 |
This file contains 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
import ipaddress | |
import subprocess | |
import requests | |
DNS_SERVER = "2404:1a8:7f01:b::3" # NTT西は所定のDNSサーバー | |
DOMAIN = "route-info.flets-east.jp" # NTT西管内は route-info.flets-west.jp | |
PORT = 49881 | |
# dig IPv6 addr | |
dig_res = subprocess.run(["dig",f"@{DNS_SERVER}",DOMAIN,"AAAA","+short"],stdout=subprocess.PIPE) |