Can’t figure out how to set Subnet Mask

Started by marten2442, July 09, 2024, 07:21:16 AM

Previous topic - Next topic
I plugged my wan connection into my box, and I couldn't get a connection to the internet so I contact my ISP and was told this.

You need to set the router's "Internet connection type" to "static IP", and apply the IP address information listed below. Let us know if you need any further assistance setting up the router.

IP- xx.xx.xxx.170
Subnet Mask- 255.255.255.240
Gateway- xx.xx.xxx.161
DNS 1- 10.1.1.3
DNS 2- 10.1.1.6

I'm not quite sure where the gateway and subnet mask options are but I've set the ipv4 address to static in my Interfaces > Wan

Subnet masks are an outdated format - today people use prefix length (CIDR) notation instead.

255.255.255.240 is 8 + 8 + 8 + 4 consecutive "1" bits, making 28 total. So you set your address to xx.xx.xxx.170/28.

The gateway is created under System > Gateways in the UI.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

"Outdated" is a strong word, as you define an Interface in opnsense with e.g. /28, but on the ISC DHCPv4 config page you see 255.255.255.192 as "Subnet mask". Just as one example.

So it's quite handy to have a conversion table from one notation to the other at hand

https://en.wikipedia.org/wiki/Subnet_mask

;-)
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....