Network Configuration on 4 Port Router

Hi All,

I'm new to OpenWRT. I am looking around for a new firewall and found I can install this on a generic intel 4 port mini PC (Similar to Protectli). I managed to install it and found that the first nic is set in a bridge br-lan. When I tried to remove it from the bridge everything fell apart, even recreating the bridge did not allow network traffic.

What I was trying to achieve - is it possible.

eth0 - WAN
eth1 - VLAN 5 - Servers
VLAN 10 - LAN
eth1 - VLAN 15 - Wireless
VLAN 16 - IoT
eth3 - VLAN 20 - Isolated.

Each VLAN has an interface for routing. I don't wish to do bridging with any of the NICs. I could not find a guide for doing this and I'm guessing because it was written for embedded devices?

Kind Regards

If you have separated NIC's, you don't need VLAN's in this case. Just create your interfaces and assign your NIC as device.

1 Like

…or use the dotted notation for VLANs.

Thank you for reply, although I think I didn't explain it properly. Configuring the VLANs is all good and I do have multiple networks on a single link. What I would like to know is the configuration as it did not seem to work. All examples use a bridge. I don't need a bridge.

Forget VLANs for the moment just simple setup as shown below does not work? noticed there is a config interface and config device. Believe I am missing something. When I use this configuration my eth1 interface does not come up and it doesn't have an IP address. Forgive me learning the syntax.

Following

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        list ipaddr '127.0.0.1/8'
 
config globals 'globals'
        option dhcp_default_duid '0004redacted'
        option ula_prefix 'fd9f:acbd:1234::/48'
        option packet_steering '2'

# Remove bridge information

# Do I need a config device here ?

# config device
#         option name 'eth1'
#         ports eth1

config interface 'lan'
        option device 'eth1'
        option proto 'static'
        list ipaddr '192.168.1.1/24'
        option ip6assign '60'

config interface 'wan'
        option device 'eth0'
        option proto 'dhcp' 

some guidance on configuration would be awesome - appreciate it !

This cannot work:

You have 2 network interfaces claiming the same device. This is impossible.
It also is invalid because both would be untagged on the same device.

Is it your intent to have the lan and wan operate on the same physical port? (This can be done -- it's called a "router on a stick", but it's not always best practice and/or the best method).

Oh, that was a typo ... WAN was supposed to say eth0 and lan was supposed to say eth1.

Cheers

Sorry I feel like a idiot, believe I solved my problem.

For some reason I was using ` rather than ' in my configuration.
Once I changed them all it worked as expected :frowning:

Thanks all.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.