There's no switch function when i installed the firmware.
So, i edited the /etc/config/network as https://openwrt.org/toh/pirelli/drg_a226m suggested.
Now the switch section appeared but got a error message.
I don't know that model but you need to map out what the ports on the back are actually connected to.
are there really two usable CPU Ethernet ports? You can use ip link show and look for the LOWER_UP (as opposed to NO-CARRIER) attribute to see if a cable (or switch chip) is connected to a port.
Are the 4 RJ-45 ports on the back just ports on the switch? Again connect a live Ethernet cable to one port at a time and check the switch status with swconfig show to see which one comes up. It looks fairly certain that switch port 5 is one of the CPU ports, it would be eth1 if you've been running LAN on it.
there is only one Ethernet which includes 4 lan ports.
I think that the eth0 is that "TELEFONO" with 2 ports
This is the output when my pc is connected to the 1st lan port
root@OpenWrt:~# swconfig dev switch0 show
Global attributes:
enable_vlan: 0
ports: 0x003f
Port 0:
pvid: 0
link: port:0 link:up speed:100baseT full-duplex auto
Port 1:
pvid: 0
link: port:1 link:down
Port 2:
pvid: 0
link: port:2 link:down
Port 3:
pvid: 0
link: port:3 link:down
Port 4:
pvid: 0
link: port:4 link:down
Port 5:
pvid: 0
link: port:5 link:up speed:100baseT full-duplex
root@OpenWrt:~# ip link
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: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN qlen 1000
link/ether 02:10:18:01:00:01 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UP qlen 1000
link/ether 02:10:18:01:00:02 brd ff:ff:ff:ff:ff:ff
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:1c:a2:b0:4b:94 brd ff:ff:ff:ff:ff:ff
5: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether 02:10:18:01:00:02 brd ff:ff:ff:ff:ff:ff
Grazie millle!
At end, after some attemps, I have been able to correct the error. The board name of my device is infact a226m-fwb I copied the settings you suggested me at the begin of 02_network file and in this way it was possible to change the board.json file.