Hi all,
I have configured networking:
/etc/config/network
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.255.255.0'
config 'interface' 'lan'
option 'ifname' 'eth0'
option 'type' 'bridge'
option 'proto' 'static'
option 'ipaddr' '192.168.10.60'
option 'netmask' '255.255.255.0'
option 'gateway' '192.168.10.1'
option 'dns' '213.215.116.99'
config 'alias'
option 'interface' 'lan'
option 'proto' 'static'
option 'ipaddr' '192.168.99.2'
option 'netmask' '255.255.255.0'
config 'alias'
option 'interface' 'lan'
option 'proto' 'static'
option 'ipaddr' '192.168.199.2'
option 'netmask' '255.255.255.0'
config 'interface' 'wan'
option 'ifname' ' '
option 'proto' 'none'
After start networking I have created and configgures eth0:1 interface with IP as interfave br-lan:1.
This is ifconfig:
br-lan Link encap:Ethernet HWaddr 00:D0:12:0F:E5:2A
inet addr:192.168.10.60 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:407 errors:0 dropped:0 overruns:0 frame:0
TX packets:226 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27516 (26.8 KiB) TX bytes:29572 (28.8 KiB)
br-lan:1 Link encap:Ethernet HWaddr 00:D0:12:0F:E5:2A
inet addr:192.168.99.2 Bcast:192.168.99.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
br-lan:2 Link encap:Ethernet HWaddr 00:D0:12:0F:E5:2A
inet addr:192.168.199.2 Bcast:192.168.199.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0 Link encap:Ethernet HWaddr 00:D0:12:0F:E5:2A
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5228 errors:0 dropped:0 overruns:0 frame:0
TX packets:3195 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:534844 (522.3 KiB) TX bytes:522987 (510.7 KiB)
eth0:1 Link encap:Ethernet HWaddr 00:D0:12:0F:E5:2A
inet addr:192.168.99.2 Bcast:192.168.99.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:56 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4940 (4.8 KiB) TX bytes:4940 (4.8 KiB)
And route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.199.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
192.168.99.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.99.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
0.0.0.0 192.168.10.1 0.0.0.0 UG 0 0 0 br-lan
Why is it as?
An after, if this OK, why is not have br-lan:2 alias eth0:x to?
Where is problem in my config file?
Thank's for help.