Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
WAN interface not detecting IP
« previous
next »
Print
Pages: [
1
]
Author
Topic: WAN interface not detecting IP (Read 676 times)
nirmal
Newbie
Posts: 5
Karma: 0
WAN interface not detecting IP
«
on:
July 13, 2024, 05:07:59 pm »
Hi All,
I have installed OPNSense in VirtualBox, where I have assigned two ports.
1. NAT
2. Internal network
But after installation, it's not detecting NAT IP on CLI. As you can see below, WAN interface not detecting IP. LAN interface is fine.
Does anybody know what I am missing here?
Thanks
Logged
Patrick M. Hausen
Hero Member
Posts: 6851
Karma: 575
Re: WAN interface not detecting IP
«
Reply #1 on:
July 13, 2024, 05:12:32 pm »
You might want to compare your VirtualBox settings to what I use in my Vagrant project. Or just use mine rightaway
https://github.com/punktDe/vagrant-opnsense
Probably you connected WAN to the host-only network and LAN to the NAT one. It needs to be other way round.
«
Last Edit: July 13, 2024, 05:15:29 pm by Patrick M. Hausen
»
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
nirmal
Newbie
Posts: 5
Karma: 0
Re: WAN interface not detecting IP
«
Reply #2 on:
July 13, 2024, 05:35:21 pm »
Thanks... but here I want to keep NAT as a WAN interface in firewall and internal network as LAN interface. How do I that?
Logged
Patrick M. Hausen
Hero Member
Posts: 6851
Karma: 575
Re: WAN interface not detecting IP
«
Reply #3 on:
July 13, 2024, 05:37:14 pm »
NAT as WAN is correct. Is the DHCP server enabled in VirtualBox?
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
nirmal
Newbie
Posts: 5
Karma: 0
Re: WAN interface not detecting IP
«
Reply #4 on:
July 13, 2024, 05:40:50 pm »
Yes, on host only network
Logged
nirmal
Newbie
Posts: 5
Karma: 0
Re: WAN interface not detecting IP
«
Reply #5 on:
July 13, 2024, 05:41:43 pm »
But I haven't assigned host only adapter to firewall.
Logged
Patrick M. Hausen
Hero Member
Posts: 6851
Karma: 575
Re: WAN interface not detecting IP
«
Reply #6 on:
July 13, 2024, 05:44:29 pm »
You need DHCP enabled on NAT, so WAN can pick up an address and gateway.
Or install Vagrant and just use my preconfigured box.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
nirmal
Newbie
Posts: 5
Karma: 0
Re: WAN interface not detecting IP
«
Reply #7 on:
July 13, 2024, 05:48:19 pm »
Okey.. there is no any functionality available to enable DHCP on NAT in VirtualBox. but If I assigned Bridged mode instead of NAT, still I am not getting IP on WAN interface.
Ps. I will check vagrant option
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
WAN interface not detecting IP