sh edgerouter ipv6 config for telus fiber one

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh edgerouter ipv6 config for telus fiber one相关的知识,希望对你有一定的参考价值。

# current as of edgeos v1.10.5
# cobbled together from:
# https://medium.com/@nurblieh/ipv6-on-the-edgerouter-lite-c95e3cc8d49d
# https://heald.ca/configuring-telus-optik-ipv6-ubiquiti-edgerouter/

configure

edit firewall ipv6-name WANv6_IN
set default-action drop
set rule 10 action accept
set rule 10 description "allow established"
set rule 10 protocol all
set rule 10 state established enable
set rule 10 state related enable
set rule 20 action drop
set rule 20 description "drop invalid packets"
set rule 20 protocol all
set rule 20 state invalid enable
set rule 30 action accept
set rule 30 description "allow ICMPv6"
set rule 30 protocol icmpv6
top

edit firewall ipv6-name WANv6_LOCAL
set default-action drop
set rule 10 action accept
set rule 10 description "allow established"
set rule 10 protocol all
set rule 10 state established enable
set rule 10 state related enable
set rule 20 action drop
set rule 20 description "drop invalid packets"
set rule 20 protocol all
set rule 20 state invalid enable
set rule 30 action accept
set rule 30 description "allow ICMPv6"
set rule 30 protocol icmpv6
set rule 40 action accept
set rule 40 description "allow DHCPv6 client/server"
set rule 40 destination port 546
set rule 40 source port 547
set rule 40 protocol udp
top

set interfaces ethernet eth0 firewall in ipv6-name WANv6_IN
set interfaces ethernet eth0 firewall local ipv6-name WANv6_LOCAL

set interfaces ethernet eth0 dhcpv6-pd prefix-only
set interfaces ethernet eth0 dhcpv6-pd rapid-commit enable
set interfaces ethernet eth0 dhcpv6-pd pd 0 prefix-length 56
set interfaces ethernet eth0 dhcpv6-pd pd 0 interface eth1 prefix-id :0
set interfaces ethernet eth0 dhcpv6-pd pd 0 interface eth1 service slaac
set interfaces ethernet eth0 ipv6 router-advert managed-flag true
set interfaces ethernet eth0 ipv6 dup-addr-detect-transmits 1
commit

# check if you get an ipv6 address on eth1, if all is good then run `save`

以上是关于sh edgerouter ipv6 config for telus fiber one的主要内容,如果未能解决你的问题,请参考以下文章

sh ipv6笔记

基于IPv6的数据包分析

edgerouter bonding

sh 在所有接口上关闭ipv6

edgeroute edgeswitch

基于IPv6的数据包分析(GNS3)