OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Losing connection when LAN is setup
« previous next »
  • Print
Pages: [1]

Author Topic: Losing connection when LAN is setup  (Read 2695 times)

paradox55

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Losing connection when LAN is setup
« on: May 28, 2019, 05:49:48 pm »
Hi all,

I have a weird setup, but with my small network I can't justify running a dedicated opnsense box.

VPS (opnsense) -> Server -> Switch -> Router (DHCP) -> WAN

What I'm trying to do is the following:

VPS (opnsense+DHCP) -> Server -> Switch -> Router (DHCP) -> WAN

The server only has one NIC, the VPS has two separate virtual nics with their own mac addresses. What I want is for everything behind the switch to be using the opnsense dhcp server and leave the coax cable tv boxes on the FIOS router.

However, upon configuring the LAN interface with services -> DHCP enabled the VPS loses all internet connectivity.

I think it's from both DHCP servers conflicting with one another. Any suggestions on how to make this setup work? And yes I can buy another NIC card if the virtual nic's won't work on this setup.

FIOS router - 192.168.1.1/24
Opnsense - 192.168.1.15 DHCP WAN
Opnsense - 172.0.0.1/8 DHCP LAN
Logged

hbc

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 47
    • View Profile
Re: Losing connection when LAN is setup
« Reply #1 on: May 28, 2019, 10:21:03 pm »
Both virtual nics use the same physical nic? With or without vlans? Is your switch vlan capable?
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

paradox55

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Losing connection when LAN is setup
« Reply #2 on: May 28, 2019, 11:12:12 pm »
No, the switch is not vlan capable.

After testing some more it does function correctly when the FIOS router's DHCP is disabled.

Mmm. Looks like I can't do both without vlan functionality.
Logged

hbc

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 47
    • View Profile
Re: Losing connection when LAN is setup
« Reply #3 on: May 29, 2019, 07:19:57 am »
Without vlans, it's just one layer 2 segment and both dhcp servers respond to client requests. The faster response wins.
And without vlans you can switch networks just by changing ip address. With a sniffer, you get broadcasts from lan devices, can see the used subnet and just have to set a free ip. Then you switched from wan to lan ...without filtering on any firewall.

Buy a second nic, attach your modem/router with crossover cable directly to firewall on wan and connect first nic with switch.
Then it's separated on all layers.
« Last Edit: May 29, 2019, 07:23:13 am by hbc »
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Losing connection when LAN is setup
 

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