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.

29 lines
946 B

5 years ago
  1. ##############################################################
  2. # snic_dyn_mac = Use this MAC address for the NIC (dynamic)
  3. # snic_sta_mac = Use this MAC address for the NIC (static)
  4. # snic_sta_addr = Use this IPv4 for the NIC (static)
  5. # snic_sta_mask = Use this subnet mask for the NIC (static)
  6. # NOTE: MAC address configuration is disabled/not required
  7. ##############################################################
  8. # NETWORK INTERFACE DYNAMIC CONFIGURATION
  9. # snic_dyn_mac=aa:e1:34:3f:8b:c8
  10. ##############################################################
  11. # NETWORK INTERFACE STATIC CONFIGURATION
  12. # snic_sta_mac=2e:74:6f:7b:ae:5a
  13. snic_sta_addr=192.168.3.1
  14. snic_sta_mask=255.255.255.0
  15. ##############################################################
  16. # Generate random MAC address with the following command
  17. # 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'