On 2013-02-08 7:05 PM, Дмитрий Оботуров wrote:
> Hello.
> I wrote to Mr. Steven Barth about netifd. He asked to send my question
> to this email, if I don't manage to solve it.
> 
> I use the openWrt version from trunk r35509 for x86 configuration. I
> can'not create alias. There are my settings and output "ip addr"
> 
> *config interface loopback
>     option ifname    lo
>     option proto    static
>     option ipaddr    127.0.0.1
>     option netmask    255.0.0.0
> 
> config interface lan
>     option ifname    eth0
>     option proto    static
>     option ipaddr    192.168.1.1
>     option netmask    255.255.255.0
> 
> config alias
>     option interface lan
>     option ipaddr 10.0.0.1
> *
> *ip addr
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
>     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>     inet 127.0.0.1/8 <http://127.0.0.1/8> scope host lo
> 2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
> qlen 1000
>     link/ether 00:a0:d1:53:a9:e3 brd ff:ff:ff:ff:ff:ff
>     inet 192.168.1.1/24 <http://192.168.1.1/24> brd 192.168.1.255 scope
> global eth0
> *
> 
> Why cannot alias be created in my case?
Because you forgot the netmask on your alias.

- Felix
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to