Witam serdecznie.
Wpadł mi w ręce uszkodzony 1043ND v1.10. Udało mi się go przywrócić do życia kablem szeregowym i również postanowiłem wykorzystać go jako tylko "czysty" switch tyle że bez wifi.
Wrzuciłem mu ostatni obraz Cezarego z Openwrt 19.07 r11366. Konfig wygląda następująco:
cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd52:e0bc:70ea::/48'
config interface 'lan'
option type 'bridge'
option igmp_snooping '1'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.0.2'
option netmask '255.255.255.0'
option gateway '192.168.0.1'
option dns '192.168.0.1'
# option ip6assign '60'
option ipv6 '0'
#config interface 'wan'
# option ifname 'eth0.2'
# option proto 'dhcp'
#config interface 'wan6'
# option ifname 'eth0.2'
# option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 4 5t'
#config switch_vlan
# option device 'switch0'
# option vlan '2'
# option ports '0 5t'
cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv6 'disabled'
option ra 'disabled'
option ignore '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
Dodatkowo:
-wyłączyłem (disable) w /etc/init.d/...: cron, dnsmasq, firewall, fstab, odhcpd
-dodałem do pliku "network" opcję "igmp_snooping"
-oraz chciałem wyłączyć ipv6 (zahaszowałem niektore wpisy w plikach network i dhcp jak wyżej).
Moje pytania:
Co jeszcze mogę wyłączyć (ew. dodać) co może umknęło mojej uwadze a jest istotne przy czystym switchu?
Czy ipv6 mogę gdzieś jeszcze "bardziej" wyłączyć? Pytam gdyż ifconfig nie wszędzie ale nadal zawiera wpisy "inet6" i logread również wyrzuca wpisy i IPv6:
root@OpenWrt:/# ifconfig
br-lan Link encap:Ethernet HWaddr A0:F3:C1:D4:34:A2
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:334 errors:0 dropped:0 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28212 (27.5 KiB) TX bytes:3528 (3.4 KiB)
eth0 Link encap:Ethernet HWaddr A0:F3:C1:D4:34:A2
inet6 addr: fe80::a2f3:c1ff:fed4:34a2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:354 errors:0 dropped:0 overruns:0 frame:0
TX packets:110 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35861 (35.0 KiB) TX bytes:6136 (5.9 KiB)
Interrupt:4
eth0.1 Link encap:Ethernet HWaddr A0:F3:C1:D4:34:A2
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:354 errors:0 dropped:4 overruns:0 frame:0
TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29489 (28.7 KiB) TX bytes:3804 (3.7 KiB)
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:112 errors:0 dropped:0 overruns:0 frame:0
TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10752 (10.5 KiB) TX bytes:10752 (10.5 KiB)
root@OpenWrt:/#logread | grep IPv6
Sun Aug 1 19:07:57 2021 kern.info kernel: [ 1.164428] Segment Routing with IPv6
Sun Aug 1 19:07:57 2021 kern.info kernel: [ 7.622582] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Sun Aug 1 19:07:57 2021 kern.info kernel: [ 7.628635] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
Sun Aug 1 19:07:57 2021 kern.info kernel: [ 8.657705] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sun Aug 1 19:07:57 2021 kern.info kernel: [ 8.664644] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
Sun Aug 1 19:08:03 2021 daemon.warn netifd: You have delegated IPv6-prefixes but haven't assigned them to any interface. Did you forget to set option ip6assign on your lan-interfaces?
Sun Aug 1 19:08:04 2021 kern.info kernel: [ 25.608577] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Sun Aug 1 19:08:04 2021 kern.info kernel: [ 25.619586] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Z góry dzięki za zainteresowanie.
Netgear R7800 # Netgear WNDR3800 # TP-Link TL-WR1043ND v4 # TP-Link TL-WR1043ND v1 # Synology DS920+