接口配置 network

networkconfig globals globals        option ula_prefix fd64:41b8:57ed::/47

config interface lan
        option ipaddr 192.168.1.1‘             # IPv4地址 
        option netmask 255.255.255.0‘          # Pv4掩码    
        option force_link 1
        option type bridge‘                     # 若接口数大于1 则桥接
        option proto static‘                    # IPv4 接口协议
        option ifname eth0 eth1 eth2 eth3 eth3.22 eth1.22 eth0.22 eth2.22 eth4.22 eth3.66 eth1.66 eth0.66 eth4.66 eth2.66
    # 绑定的接口,物理口和vlan口,且不同的逻辑口不能出现相同的接口
option mtu 1500‘ # MTU option disabled 0‘ # 使能状态 option ipv6_proto dhcpv6‘ # IPv6 接口协议 option macaddr 00:FF:AA:45:23:0D‘ # MAC地址 option vlanidx 66‘ # VLAN ID
# ipv6 dhcpv6 协议 config alias
lan_6 option interface lan‘ # v6 v4 连个协议一起用 option proto dhcpv6‘ # IPv6 接口协议 option reqprefix 49‘ # 前缀委派大小 Behaviour for requesting prefixes (numbers denote hinted prefix length) option defaultroute 0‘ # 使用默认网关 Whether to create an IPv6 default route over the tunnel  option peerdns 0‘ # 自动获取 DNS 服务器 Use DHCP-provided DNS server(s)  option norelease 1‘ # 不允许PD/地址释放 Don‘t send a RELEASE when the interface is brought down

# ipv6 static 协议

config alias ‘lan_6‘

  option interface ‘lan‘                          # 指定接口
  option proto ‘static‘                           # 协议
  option ip6addr ‘1.1.1.1/‘                       # Assign given IPv6 address to this interface (CIDR notation
  option ip6gw ‘3.3.3.3‘                          # Assign given IPv6 default gateway to this interface

   option ip6prefix ‘2.2.2.2/0‘                    #IPv6 prefix routed here for use on other interfaces (Barrier Breaker and later only) 

# ipv 6 

  config alias ‘lan_6‘

        option ip6assign ‘64‘                      # 委托前缀长度 Delegate a prefix of given length to this interface (see Downstream configuration below)

        option ip6hint ‘0‘                         # IPv6前缀 ID Hint the subprefix-ID that should be delegated as hexadecimal number (see Downstream configuration below)

        list ip6class ‘wan‘                        # IPv6接口 Define the IPv6 prefix-classes this interface will accept 

 

openwrt >>>>>>>>>>>>>>>https://openwrt.org/docs/guide-user/network/ipv6/start?s[]=reqprefix

>>>>>>>>>>>>>>>>>>>>>https://openwrt.org/docs/guide-user/start

 

 

 

 

  Assign given IPv6 address to this interface (CIDR notation) 

接口配置 network

上一篇:接口测试——HTTP请求接口


下一篇:12.ThinkPHP表单验证