Interface with static ip

I'm trying to create two interfaces with static IP, one is loopback and another is mgmt_lan. But I dont see the interfaces created when I run the command ifconfig.
Below is my config

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

config interface 'mgmt_lan'
    option  ifname  'br-lan'
    option  proto  'static'
    option  ipaddr  '192.168.168.1'
    option  netmask  '255.255.255.0'

The loopback interface is already there by default.
If you want to add an extra IP on lan interface, use option ifname '@lan'

2 Likes

https://openwrt.org/docs/guide-user/network/network_interface_alias

2 Likes