[24.10] Can't get uplink on WAN

To get a static public IPv4 address I need to configure:
IP address: 10.156.26.39
Netmask: 255.255.255.224 (/27)
Gateway: 10.156.0.1

When using OpenWRT 23.05 (which still uses swconfig for router) this configuration works:

config interface 'loopback'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'
        option device 'lo'

config globals 'globals'
        option ula_prefix 'fda9:6c27:2416::/48'

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

config interface 'wan'
        option device 'eth0.2'
        option proto 'static'
        option ipaddr '10.156.26.39'
        option netmask '255.255.224.0'
        option gateway '10.156.0.1'
        option metric '0'
        option weight '0'
        option type 'bridge'

config interface 'wan6'
        option proto 'dhcpv6'
        option device 'eth0.2'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option vid '1'
        option ports '2 3 6t'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth1.1'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '0t 5'
        option vid '2'

However after upgrading to 24.10.1 and trying to setup static IP for my WAN interface this configuration does not work as I simply get no uplink:


config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd00::/8'
        option packet_steering '1'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'lan4'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config interface 'wan'
        option device 'wan'
        option proto 'static'
        option ipaddr '10.156.26.39'
        option netmask '255.255.255.224'

config interface 'wan6'
        option device 'wan'
        option proto 'dhcpv6'

I don't know if I forgot something. I tried making a separate eth0.2 bridge and connecting my wan interface to it but still no uplink.

By no uplink I mean that I can SSH to my router from my computer but can't even ping 1.1.1.1 nor ping or visit it from my computer. If I setup DHCP on the WAN interface I get a NAT'ed IP address and uplink.

Any ideas?

This doesn't match what you have in your 23.05 config...

Further, if you have a /27, the gateway must be an within the /27 subnet that encompasses this:

but you said that the gateway is:

Which suggest that the /19 is more likely correct if it worked previously.

so... maybe on 24.10 (this is essentially the same as you had before):

config interface 'wan'
        option device 'wan'
        option proto 'static'
        option ipaddr '10.156.26.39'
        option netmask '255.255.224.0'
        option gateway '10.156.0.1'
1 Like

Thanks. Looking at the notes from my ISP they instructed me to use /27 but when looking closely at my old config I agree that it's a /19. Can't seem to find any follow up emails correcting this.

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