OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • implement new network setup, DHCP WAN address with additional static subnet
« previous next »
  • Print
Pages: [1]

Author Topic: implement new network setup, DHCP WAN address with additional static subnet  (Read 544 times)

skyjam

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
    • View Profile
implement new network setup, DHCP WAN address with additional static subnet
« on: February 22, 2022, 11:49:56 am »
Hi there

I need to setup an additional site and I have the following requirements:
  • The IP address range will be routed through a static IP address that will be assigned to the router with MAC reservation.
  • Behind this static IP address, the subnet for the IP range is implemented by the customer (5 public IP addresses are available in this subnet).

I get a static range /29, (i.e. 55.66.77.88) whereas:
  • .88 => the first address will be the network address
  • .89 => the second address is the local gateway
  • .90-94 => the 3rd to 7th address can be used as desired
  • .95 => the last address is for broadcast

How do I need to setup opnSense to use this subnet with a private LAN subnet and NAT routing?
I guess the WAN is simply DHCP.
Do I need to add Virtual IPs fot the static subnet?

Thanks for your hints!
Logged

HappyOpnSense

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: implement new network setup, DHCP WAN address with additional static subnet
« Reply #1 on: February 24, 2022, 02:45:34 pm »
This already assumes that a subrange like /30 or /29 can be assigned using DHCP. Is that supported by DHCP in the first place ?
Logged

skyjam

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
    • View Profile
Re: implement new network setup, DHCP WAN address with additional static subnet
« Reply #2 on: February 25, 2022, 05:25:24 pm »
Quote from: HappyOpnSense on February 24, 2022, 02:45:34 pm
This already assumes that a subrange like /30 or /29 can be assigned using DHCP. Is that supported by DHCP in the first place ?
No, the subnet will not be assigned using DHCP. Only the IP address of the router will be assigned. This IP is not part of the subnet!

It is like this:
Code: [Select]
     WAN / Internet
            |
            |  Cable-Provider
            |
      .-----+-------.
      |  HFC Modem  |  (Bridge)
      '-----+-------'
            |
            |  WAN
            |
      .-----+------.   <--- IP assigned by ISP/DHCP
      |  Router    |
      '-----+------'
            |
            |  Public IP subnet (/29)
            |
      .-----+----.
      | opnSense |
      '-----+----'

I want to combine the router and the opnSense in one...
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • implement new network setup, DHCP WAN address with additional static subnet
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2