Apologies for the noob question but been struggling with this issue for the past few days since we moved in to a new office with a new provider. In our last place, we had been using a dynamic IP so OpenWrt worked out of the box and the new guy who came to configure everything here could not figure out how to do this on OpenWrt. In the end he just gave me an IP address, Gateway, Netmask and two DNS addresses that I should be using if I'm going to try this on my own.
I can confirm that the details above work because I figured it out on how to connect the modem directly to a PCs ethernet port and get connectivity.
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config globals 'globals' option ula_prefix 'fd6d:597b:276d::/48' config interface 'lan' option type 'bridge' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option ip6assign '60' option ifname 'eth0.2 eth1.1' config interface 'wan' option proto 'static' option netmask '255.255.255.252' option gateway 'xxx.xx.xx.xx' option ifname 'eth0.2' option dns '18.104.22.168' option ipaddr 'xxx.xx.xx.xx' config interface 'wan6' option ifname 'eth0.2' option proto 'dhcpv6' config switch option name 'switch0' option reset '1' option enable_vlan '1' config switch_vlan option device 'switch0' option vlan '1' option ports '2 3 4 5 0t' config switch_vlan option device 'switch0' option vlan '2' option ports '1 6t'
Any help appreciated!