Projecte

General

Perfil

Actions

Característica #482

tancat

primary_device on devices with DSA networking

Afegit per Roger Pueyo Centelles fa més de 4 anys. Actualitzat fa més de 3 anys.

Estat:
Tancat
Prioritat:
Baixa
Categoria:
Network
Versió prevista:
Inici:
02-07-2020
Data de venciment:
% realitzat:

100%

Temps previst:
4:00 h
Temps invertit:

Descripció

MT7621-based devices now use DSA networking, so eth0 is no longer present for most of them. Therefore, eth0 should only be added to primary_device as a very last option:

root@qMp-99c2:/# head -n15  /etc/config/qmp 

config qmp 'interfaces'
    option lan_devices 'lan1 lan2'
    option mesh_devices 'eth0 lan1 lan2 wan'
    option wan_devices 'wan'
    option no_vlan_devices 'eth0 lan1 lan2 wan'

config qmp 'node'
    option primary_device 'eth0'
    option device_name 'qMp'
    option append_id '1'
    option prepend_cnm '1'
    option key '/tmp/qmp_key'
    option elevation '0'
    option latitude '0.0'
Actions #1

Actualitzat per Roger Pueyo Centelles fa més de 4 anys

root@OpenWrt:/# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr 00:00:00:00:00:C2  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          [...]

eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:C2
          [...]
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:132 errors:0 dropped:0 overruns:0 frame:0
          TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:22365 (21.8 KiB)  TX bytes:8856 (8.6 KiB)
          Interrupt:21 

lan1      Link encap:Ethernet  HWaddr 00:00:00:00:00:C2  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:113 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:17480 (17.0 KiB)  TX bytes:3774 (3.6 KiB)

lan2      Link encap:Ethernet  HWaddr 00:00:00:00:00:C2  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wan       Link encap:Ethernet  HWaddr 00:00:00:00:00:C3  
          [...]
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2509 (2.4 KiB)  TX bytes:2830 (2.7 KiB)

root@OpenWrt:/# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
    link/ether 00:00:00:00:00:c2 brd ff:ff:ff:ff:ff:ff
3: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN qlen 1000
    link/ether 00:00:00:00:00:c2 brd ff:ff:ff:ff:ff:ff
4: lan1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
    link/ether 00:00:00:00:00:c2 brd ff:ff:ff:ff:ff:ff
5: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 00:00:00:00:00:c3 brd ff:ff:ff:ff:ff:ff
8: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 00:00:00:00:00:c2 brd ff:ff:ff:ff:ff:ff

Actions #2

Actualitzat per Roger Pueyo Centelles fa més de 3 anys

  • Estat ha canviat de Nou a Tancat
  • % realitzat ha canviat de 0 a 100

Aplicat en el conjunt de canvis 85bda55d07f1194342c6e84981d022cc70a7790d.

Actions

També disponible a: Atom PDF