Toggle between client and router mode on network interface (Linux)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

5 years ago
  1. ##############################################################
  2. # snic_dyn = Virtual NIC name on the system (dynamic)
  3. # snic_dyn_mac = Use this MAC address for the NIC (dynamic)
  4. # snic_sta = Virtual NIC name on the system (static)
  5. # snic_sta_mac = Use this MAC address for the NIC (static)
  6. # snic_sta_addr = Use this IPv4 for the NIC (static)
  7. # snic_sta_mask = Use this subnet mask for the NIC (static)
  8. # NOTE: MAC address configuration is disabled/not required
  9. ##############################################################
  10. # NETWORK INTERFACE DYNAMIC CONFIGURATION
  11. # snic_dyn=wlan0_sta
  12. # snic_dyn_mac=1e:ce:c4:42:bc:18
  13. ##############################################################
  14. # NETWORK INTERFACE STATIC CONFIGURATION
  15. # snic_sta=wlan0_ap
  16. # snic_sta_mac=1e:38:00:9d:70:35
  17. snic_sta_addr=192.168.2.1
  18. snic_sta_mask=255.255.255.0
  19. ##############################################################
  20. # Generate random MAC address with the following command
  21. # printf '%02x' $((0x$(od /dev/urandom -N1 -t x1 -An | cut -c 2-) & 0xFE | 0x02)); od /dev/urandom -N5 -t x1 -An | sed 's/ /:/g'