Well, to get an IP the computer on port 4 needs to be able to talk with opnsense. Port 4 is connected to vlan 30, how does VLAN 30 connect to opnsense? You need to add the port that connects to opnsense to VLAN 30. Probably as "tagged", meaning that you ask the switch to send packets tagged with...