openwrt - alias (interface)

 

在 luci

 

Network -> Interfaces -> Wan

 

 

 

 

 

config interface 'wan'
        option ifname 'eth1'
        option proto 'static'
        option netmask '255.255.255.0'
        option gateway '192.168.88.1'
        option broadcast '192.168.88.255'
        option dns '192.168.88.1'
        option ipaddr '192.168.88.173'

 

config alias 'ip2'
        option proto 'static'
        option interface 'wan'
        option ipaddr '192.168.88.174'
        option netmask '255.255.255.0'
        option gateway '192.168.88.1'

 

ifconfig 竟然看不到 sub-interface