首页 > 其他分享 >最简单Openwrt ipv6配置,局域网WAN6中继模式获取原生ipv6地址

最简单Openwrt ipv6配置,局域网WAN6中继模式获取原生ipv6地址

时间:2022-11-06 18:34:23浏览次数:60  
标签:wan option relay WAN6 ra ipv6 wan6 config Openwrt

最简单Openwrt ipv6配置,局域网WAN6中继模式获取原生ipv6地址_vim


条件

condition


    wan 和 wan6 是默认配置

    Wan and wan6 are the default configurations


    同时wan6可以获取到原生IPv6

    At the same time wan6 can get native IPv6


最简单Openwrt ipv6配置,局域网WAN6中继模式获取原生ipv6地址_配置文件_02


ssh链接之后,进行备份配置文件后,并进行修改

After the ssh link, after backing up the configuration file, and modifying it


root@cby:~# vim /etc/config/dhcp
root@cby:~# cat /etc/config/dhcp


config dnsmasq
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option noresolv '0'
list server '127.0.0.1#5333'


config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option ra_slaac '1'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option ra 'relay'
option dhcpv6 'relay'
option ndp 'relay'


config dhcp 'wan'
option interface 'wan'
option ignore '1'
option ra 'relay'
option dhcpv6 'relay'
option ndp 'relay'
option master '1'


config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'


config srvhost
option srv '_vlmcs._tcp'
option target 'cby'
option port '1688'
option class '0'
option weight '100'


配置文件修改为以上配置即可,注意wan口的配置。若有wan6接口的配置,将以下配置添加到wan6。若没有即配置到wan口即可。

The configuration file can be modified to the above configuration, pay attention to the configuration of the wan port. If there is a wan6 interface configuration, add the following configuration to wan6. If not, configure it to the wan port.


option ra 'relay'                        
option dhcpv6 'relay'
option ndp 'relay'
option master '1'


最简单Openwrt ipv6配置,局域网WAN6中继模式获取原生ipv6地址_配置文件_03



最后进行IPV6测速

Finally, IPV6 speed test



最简单Openwrt ipv6配置,局域网WAN6中继模式获取原生ipv6地址_配置文件_04










标签:wan,option,relay,WAN6,ra,ipv6,wan6,config,Openwrt
From: https://blog.51cto.com/u_12212643/5827508

相关文章

  • Openwrt+树莓派
    试了几天,终于将在树莓派3上部署了Openwrt路由,然后作为一个子路由部署在主路由下面(和旁路由不一样),简单记录一下。1.现在sd卡(用了一个4G的卡)上刷入系统,这里用到的工具是Bale......
  • ipv4和ipv6与int互转通用处理方式
    记录一下ipv4和ipv6与int互转通用处理方式,由于ipv6转的int比较大,因此需要使用big.Int来保存packagemainimport( "fmt" "math/big" "net/netip")funcInetNt......
  • docker支持ipv6
    方法方法一、Pv6地址不为容器中的服务特别分配IPv6地址。只要Docker把外部的IPv6地址端口映射到容器的IPv4端口上,随后访问主机的IPv6相应端口即可。方法二、为Docker网......
  • OPNsense配置IPv6
    前面介绍了​​pfSense配置IPv6​​的方法,在本篇文章中,将介绍在OPNsense中配置IPv6的方法。两个防火墙配置IPv6的步骤基本相同,OPNsense中的默认设置包含了大部分的IPv6常用......
  • Openwrt 跨网实现二层实验
    由于公司项目需要跨网实现二层通信,在咨询大量的大神后他们推荐的方案是vxlan方案。于是就有了下面的实验。网络拓扑:网络环境:内网IP公网IP系统软件路由R1192.168.220.254/241......
  • IPv4如何向IPv6过渡?IPv6过渡转换技术有哪些?-中科三方
    IPv6是下一代互联网协议,相比IPv4其拥有更大的地址空间和更高的安全性,可以满足大数据、物联网等新型网络技术的需要。从IPv4向IPv6过渡,需要解决IPv4网络和IPv6网络之间的互......
  • openwrt 使用方法与问题排查
    openwrt不能轻易断电,如果断电,以下问题都有可能出现.在openwrt中ping不通baidu.com提示ping:badaddress‘baidu.com‘解决方法把nameserver8.8.8.8添加到......
  • IPV6的简单学习与整理
    背景大概2018年时曾经突击学习过一段时间IPV6当时没太有写文档的习惯,导致这边没有成型的记录了.今天又有项目要求使用IPV6,想了想就将之前学习的部分还有想继续学习......
  • IPv6是选NAT6还是Native
    IPv6是选NAT6还是Native   IPv6是选NAT6还是Native?答案:选择上网模式首先选择Native模式,如果无法获取LAN端口IPv6的前缀,可以切换至NAT6。   IPv6(InternetPro......
  • Delphi datasnap如何使用IPv6地址
    今天看到电信公司开始推广使用IPv6我也想着用datasnap中间件也使用IPv6,百度一下都是下面的说法: “有些人说DATASNAP不支持IPv6,只支持IPv4。这是不正确的。DATASNAP默......