Skip to content

Instantly share code, notes, and snippets.

@yui0
Last active December 2, 2020 12:39
Show Gist options
  • Save yui0/db6633b2d96e192919e0414dcc678dea to your computer and use it in GitHub Desktop.
Save yui0/db6633b2d96e192919e0414dcc678dea to your computer and use it in GitHub Desktop.
# IPoE
# WAN
description lan1 WAN
ngn type lan1 ntt
ipv6 route default gateway dhcp lan1
#ipv6 prefix 1 ra-prefix@lan1::/64
ipv6 prefix 1 dhcp-prefix@lan1::/64
ipv6 lan1 address dhcp
ipv6 lan1 dhcp service client
ipv6 lan1 prefix change log on
#ipv6 lan1 secure filter in 1010 1011 1012 2000
#ipv6 lan1 secure filter out 3000 dynamic 100 101 102 103 104 105 108 109
ipv6 lan1 mtu 1500
#ip lan1 address 192.168.1.1/24
ip lan1 address 192.168.1.2/24
# LAN3 ipv6
description lan3 LAN
#ipv6 lan3 address ra-prefix@lan1::1/64
ipv6 lan3 address dhcp-prefix@lan1::1/64
#ipv6 lan3 rtadv send 1 o_flag=on
ipv6 lan3 rtadv send 1
#no ipv6 lan3 dhcp service server
ipv6 lan3 dhcp service server
ip lan3 address 192.168.0.1/24
#ip lan3 secure filter in 100000 100001 100002 100003 100004 100005 100006 100007 100099
# DNS
# Cloudflare DNS
dns server 1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001
# Google Public DNS
#dns server 8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844
dns server dhcp lan1
dns domain .
dns service off
dns notice order dhcp server
#dns host any
dns host lan3
dns service fallback on
dns cache max entry 1024
dns private address spoof on
# IPv4
dhcp service server
dhcp server rfc2131 compliant except remain-silent
dhcp scope 1 192.168.0.10-192.168.0.100/24
ip routing process fast
ip route default gateway tunnel 1
ip filter source-route on
ip filter directed-broadcast on
# DS-Lite
tunnel select 1
description tunnel DS-Lite
tunnel encapsulation ipip
# AFTR: gw.transix.jp (2404:8e00::feed:100 / 2404:8e01::feed:100)
# AFTR: dgw.xpass.jp (2001:f60:0:200::1:1)
tunnel endpoint address 2001:f60:0:200::1:1
ip tunnel mtu 1460
#ip tunnel secure filter in 201000 201001 201002 201003 201020 201021 201022 201023 201024 201025 201030 201032
#ip tunnel secure filter out 201010 201011 201012 201013 201020 201021 201022 201023 201024 201025 201026 201027 201099 dynamic 201080 201081 201082 201083 201084 201085 201098 201099
ip tunnel tcp mss limit auto
tunnel enable 1
# etc
schedule at 1 */* 06:00 * ntpdate ntp3.jst.mfeed.ad.jp syslog
# show
#show config
show ipv6 address lan2
show ipv6 address
show status ipv6 dhcp
show status dhcp
show status lan1
show status lan2
show log reverse
show status tunnel 1
show status ngn
# ip addr show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment