Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Can’t figure out how to set Subnet Mask
« previous
next »
Print
Pages: [
1
]
Author
Topic: Can’t figure out how to set Subnet Mask (Read 730 times)
marten2442
Newbie
Posts: 1
Karma: 0
Can’t figure out how to set Subnet Mask
«
on:
July 09, 2024, 07:21:16 am »
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
Logged
Patrick M. Hausen
Hero Member
Posts: 6841
Karma: 574
Re: Can’t figure out how to set Subnet Mask
«
Reply #1 on:
July 09, 2024, 08:46:40 am »
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.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
chemlud
Hero Member
Posts: 2486
Karma: 112
Re: Can’t figure out how to set Subnet Mask
«
Reply #2 on:
July 09, 2024, 09:24:46 am »
"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
;-)
Logged
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....
musketball
Newbie
Posts: 2
Karma: 0
Re: Can’t figure out how to set Subnet Mask
«
Reply #3 on:
July 09, 2024, 07:43:07 pm »
https://dnsmadeeasy.com/support/subnet
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Can’t figure out how to set Subnet Mask