Ho fatto un po' di tentativi purtroppo senza grande successo, ossia dopo circa 30 secondi di funzionamento in bridge la cosa smette di funzionare.
Ho provato anche a separare il bridge lan da quello wan, ossia ho utilizzato la seguente configurazione:
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 default_ps '0'
config interface 'lan'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.154.1'
option ip6assign '64'
option force_link '0'
option ipv6 '1'
option ifname 'eth1 eth2 eth3 eth5'
list pppoerelay ''
list pppoerelay ''
config interface 'lan_wan'
option type 'bridge'
option ip6assign '64'
option force_link '0'
option ipv6 '0'
option macaddr 'E0:B9:E5:59:BD:96'
option ifname 'eth0 ptm0'
list pppoerelay ''
config switch 'bcmsw'
option reset '1'
option enable_vlan '0'
option qosimppauseenable '0'
option jumbo '0'
config interface 'wan'
option proto 'dhcp'
option reqopts '1 3 6 15 33 42 43 51 121 249 212'
option vendorid 'Technicolor_TG789vacXtream_MOS/dslforum.org'
option authfail '0'
option iface6rd '6rd'
option zone6rd 'wan'
option mtu '1500'
option initboot '1'
option ipv6 '0'
option notused 'E0:B9:E5:59:BD:63'
option macaddr 'E0:B9:E5:59:BD:96'
option ifname 'ptm0'
option password 'password'
option auto '1'
config device 'vlan_ptm0'
option type '8021q'
option ifname 'ptm0'
option mtu '1500'
option name 'vlan_ptm0'
option vid '100'
config interface 'wantag'
option proto 'dhcp'
option reqopts '1 3 6 15 33 42 51 121 249 212'
option vendorid 'Technicolor_TG789vacXtream_MOS/dslforum.org'
option authfail '0'
option iface6rd '6rd'
option zone6rd 'wan'
option mtu '1500'
option initboot '1'
option ipv6 '0'
option notused 'E0:B9:E5:59:BD:63'
option ifname 'vlan_ptm0'
option auto '0'
config interface 'wwan'
option auto '1'
config config 'config'
option wan_mode 'dhcp'
config interface 'ipoe'
option proto 'dhcp'
option metric '1'
option reqopts '1 3 6 43 51 58 59'
option release '1'
option neighreachabletime '1200000'
option neighgcstaletime '2400'
option ipv6 '1'
config device 'waneth4'
option enabled '1'
option type '8021q'
option name 'waneth4'
option vid '835'
config device 'wanptm0'
option enabled '1'
option type '8021q'
option name 'wanptm0'
option vid '835'
In pratica ho tolto eth0 dal bridge lan e l'ho messo insieme a ptm0 nel nuovo bridge lan_wan. Anche in questo modo, la funzionalità bridge resta operativa per meno di un minuto, diciamo circa 30 secondi e poi "muore". Comunque sia ho notato le seguenti cose:
- Il MAC address di tutte le interfacce (ethX, ptm0, e dei due bridge), ad eccezione di wl0 (la wireless) è sempre il solito. Potrebbe essere un problema? Ho provato a spoofarlo con option hwaddr 'E0:B9:E5:59:BD:96' in wan e lan_wan ma come potete vedere dall'output di ifconfig sotto riportato il mac non cambia, resta sempre il solito di tutte le altre interfacce.
- Quando la configurazione bridge smette di funzionare, eseguendo un ping continuo dal firewall, ho notato che sull'interfaccia ptm0 aumentano solo i pacchetti in rx mentre in tx smettono di aumentare. All'opposto invece per l' interfaccia eth0 e per il nuovo bridge lan_wan, ossia aumentano solo i pacchetti tx mentre i pacchetti rx restano immutati. Naturalmente durante i 30-40 secondi di corretto funzionamento del bridge, aumentano tutti i pacchetti, sia rx che tx, sulle interfacce ptm0 e eth0 e sul bridge lan_wan.
Tutte queste prove le ho fatte, sempre con il medesimo risultato, anche senza creare il nuovo bridge lan_wan ma mettendo semplicemente ptm0 nel bridge lan.
A questo punto mi sorge il dubbio che ci sia sul fastgate qualche controllo/script che ogni 30/60 secondi elimini il bridge o faccia qualche strana operazione.
Ho notato inoltre che riavviando il fastgate il nuovo bridge lan_wan viene eliminato dalla configurazione.
Tutte queste prove le ho effettuate dopo aver installato la versione 9.5.2 della GUI di Ansuel.
Questo l'output di ifconfig:
bcmsw Link encap:Ethernet HWaddr E0:B9:E5:59:BD:62
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11994 errors:0 dropped:0 overruns:0 frame:0
TX packets:10533 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1171471 (1.1 MiB) TX bytes:6300054 (6.0 MiB)
Base address:0xffff
br-lan Link encap:Ethernet HWaddr E0:B9:E5:59:BD:62
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::e2b9:e5ff:fe59:bd62/64 Scope:Link
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:1706 errors:0 dropped:0 overruns:0 frame:0
TX packets:1613 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:127490 (124.5 KiB) TX bytes:291573 (284.7 KiB)
br-lan_wan Link encap:Ethernet HWaddr E0:B9:E5:59:BD:62
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:38 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8163 (7.9 KiB) TX bytes:0 (0.0 B )
eth0 Link encap:Ethernet HWaddr E0:B9:E5:59:BD:62
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:240 errors:0 dropped:0 overruns:0 frame:0
TX packets:389 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:26418 (25.7 KiB) TX bytes:90638 (88.5 KiB)
eth1 Link encap:Ethernet HWaddr E0:B9:E5:59:BD:62
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 )
eth2 Link encap:Ethernet HWaddr E0:B9:E5:59:BD:62
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 )
eth3 Link encap:Ethernet HWaddr E0:B9:E5:59:BD:62
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8181 errors:0 dropped:0 overruns:0 frame:0
TX packets:8292 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:950230 (927.9 KiB) TX bytes:4588827 (4.3 MiB)
eth5 Link encap:Ethernet HWaddr E0:B9:E5:59:BD:62
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5029 errors:0 dropped:6 overruns:0 frame:0
TX packets:4454 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:360776 (352.3 KiB) TX bytes:4677433 (4.4 MiB)
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:16436 Metric:1
RX packets:141 errors:0 dropped:0 overruns:0 frame:0
TX packets:141 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15233 (14.8 KiB) TX bytes:15233 (14.8 KiB)
ptm0 Link encap:Ethernet HWaddr E0:B9:E5:59:BD:62
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6027 errors:0 dropped:0 overruns:0 frame:0
TX packets:5497 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4205832 (4.0 MiB) TX bytes:681785 (665.8 KiB)
wl0 Link encap:Ethernet HWaddr E0:B9:E5:59:BD:63
inet6 addr: fe80::e2b9:e5ff:fe59:bd63/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:3649
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 )
Interrupt:92
A questo punto non so veramente più cosa altro fare...
Grazie...