Template:HOSTAPD ACCESS POINT: Difference between revisions

From Variscite Wiki
 
(One intermediate revision by the same user not shown)
Line 43: Line 43:
no-dhcp-interface=wlan0    # Disable DHCP on wlan0
no-dhcp-interface=wlan0    # Disable DHCP on wlan0
no-dhcp-interface=wfd0      # Disable DHCP on wfd0
no-dhcp-interface=wfd0      # Disable DHCP on wfd0
# Configure ipv4 address range
dhcp-range=192.168.10.10,192.168.10.100,12h  # Set the DHCP range and lease time
dhcp-range=192.168.10.10,192.168.10.100,12h  # Set the DHCP range and lease time
# Configure ipv6 address range
dhcp-range=fd00:1234::10,fd00:1234::100,12h  # Set the DHCPv6 range and lease time
# Enable Router Advertisement (RA) to inform clients of the IPv6 prefix
enable-ra
</pre>
</pre>


Line 49: Line 57:


  # ip addr add 192.168.10.1/24 dev uap0
  # ip addr add 192.168.10.1/24 dev uap0
# ip -6 addr add fd00:1234::1/64 dev uap0
  # systemctl restart hostapd
  # systemctl restart hostapd
  # systemctl restart dnsmasq
  # systemctl restart dnsmasq

Latest revision as of 21:32, 15 August 2024