/etc/config/wireless
on Onion 1:
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option path 'platform/ar933x_wmac'
option htmode 'HT20'
option disabled '0'
option channel '6'
option txpower '30'
option country 'US'
config wifi-iface
option device 'radio0'
option ifname 'wlan0'
option mode 'sta'
option network 'wwan'
option ssid 'NotMySSID'
option encryption 'psk2'
option key 'notmypassword'
config wifi-iface 'wmesh'
option device 'radio0'
option ifname 'wlan1'
option network 'wlan1'
option mode 'adhoc'
option ssid 'Onion-Adhoc'
option 'mcast_rate' '18000'
option bssid '42:a3:6b:c1:22:f0'
/etc/config/network
on Onion 1:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'wwan'
option proto 'dhcp'
option hostname 'OnionOmega'
config interface 'wlan1'
option proto 'static'
option ipaddr '10.0.0.2'
option netmask '255.255.255.0'
ifconfig wlan1
on Onion 1:
root@Omega-22EF:/# ifconfig wlan1
wlan1 Link encap:Ethernet HWaddr 42:A3:6B:C1:22:F0
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::40a3:6bff:fec1:22f0%4566072/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:864 (864.0 B)
/etc/config/wireless
on Onion 2:
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option path 'platform/ar933x_wmac'
option htmode 'HT20'
option disabled '0'
option channel '6'
option txpower '30'
option country 'US'
config wifi-iface
option device 'radio0'
option mode 'sta'
option network 'wwan'
option ssid 'NotMySSID'
option encryption 'psk2'
option key 'notmypassword'
config wifi-iface 'wmesh'
option device 'radio0'
option ifname 'wlan1'
option network 'wlan1'
option mode 'adhoc'
option ssid 'Onion-Adhoc'
option 'mcast_rate' '18000'
option bssid '42:A3:6B:C1:22:F8'
/etc/config/network
on Onion 2:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'wwan'
option proto 'dhcp'
option hostname 'OnionOmega'
config interface 'wlan'
option proto 'static'
option ipaddr '192.168.3.1'
option netmask '255.255.255.0'
config interface 'wlan1'
option proto 'static'
option ipaddr '10.0.0.3'
option netmask '255.255.255.0'
ifconfig wlan1
on Onion 2:
root@Omega-22F7:/# ifconfig wlan1
wlan1 Link encap:Ethernet HWaddr 42:A3:6B:C1:22:F8
inet addr:10.0.0.3 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::40a3:6bff:fec1:22f8%4566072/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:864 (864.0 B)
I can't ping 10.0.0.3 from Onion 1, and I can't ping 10.0.0.2 from Onion 2.