1

I wonder if anyone knows the behaviour of dhcpcd. I know that it is possible to configure wlan0 adapter to static IP in /etc/dhcpcd.conf like that:

interface wlan0
static ip_address=192.168.0.1

Omitting the netmask in CIDR notation does not prevent dhcpcd from working. But does anyone know what netmask such configuration defaults to?

Greenonline
  • 2,969
  • 5
  • 27
  • 38
maciek
  • 141
  • 1
  • 9

1 Answers1

1

Since you are using a "Class C" address (192.168.0.1), if you don't specify a mask, it is assumed to be /24 - iaw the old Class C definition. More details can be found here.

Seamus
  • 23,558
  • 5
  • 42
  • 83