Hello everybody, need some help. I'm trying to deploy openwrt-25.12.2-x86-64-generic-ext4-combined-efi.img.gz on VMWare Workstation (using V2V converter to transform img to vmdk) but can't get any IP-address from my DHCP. All the same if i try older openwrt versions and even trying to delpoy on ESXi. It always stops at:
[9.667932] br-lan: port 1 (eth0) entered blocking state
[9.669561] br-lan: port 1 (eth0) entered forwarding state
If I press Enter I get to the main menu but there is no any IP associated with my network interface (eth0). How to resolve it? Thanks.
br-lan runs a DHCP too, it won't poll any DHCP.
What should I do in this situation? How do I set up the virtual machine and log in through the admin panel?
You haven't told us how you connected the virtual NICs in/within the host (which is outside of the scope of OpenWrt, but still relevant to your issue).
Well, this is just standard network interface (connected as a bridge to office LAN). By the way - VM doesn't get IP-address even when network interface connected via VMware Workstation NAT.
OK - to be clear:
- The first virtual NIC is bridged to your physical LAN
- Why did you not also bridge this to LAN (i.e., the network with the OpenWrt)?
- To be clear, you're referring to the OpenWrt's DHCP, correct?
- What menu are you referring to?
- To be clear, br-lan would have the IP associated
I'll go over the main points again - I need to build an OpenWRT machine and then install v2raya packet on it to bypass internet censorship. I believe I only need one network interface on this machine, which will act as the router's WAN. v2raya will then create its own virtual interface inside this machine (singbox), which will allow for a secure tunnel to another country.
boot openwrt on a PC off a flash drive, do all the config required, then duplicate it to your "real" router ?
As an option, but in general I would like to leave it as a virtual machine, which can then be specified as a network gateway for other members of the local network.
Solved finally:
vi /etc/config/network
...
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.20.249'
option netmask '255.255.255.0'
option ip6assign '60'
/etc/init.d/network restart
config interface 'lan'
option device 'br-lan'
option proto 'dhcp'
would have worked too.
Indeed. Stil not understanding how the OpenWrt can route without a gateway or second interface, but the OP said it's solved. That's what matters.
No, I mean - I can enter luci using this IP-address (manually configured). And I will try to install v2raya to use this VM as a gateway.