Return to site

Fonera Ip Address

broken image


A Configure La Fonera A. Configure La Fonera IP Address: This field shows La Foneras IP address. Note that its the same address you typed to access the Management Console. Configure your public network You can change the public network settings from this section of the Management Console. 192.168.1.128 is a Private IP Address for use only inside of a Private Network. This address can be used by routers, modems, and other many devices. You are trying to.

[SOLVED]How to change wireless mac addresses of Fonera???

DD-WRT Forum Forum Index ->Atheros WiSOC based Hardware
View previous topic :: View next topic
AuthorMessage
drpepperONE
DD-WRT Novice
Joined: 02 Dec 2007
Posts: 17
Location: http://www.wifi-ita.com/forum/

Posted: Sun Dec 02, 2007 20:17 Post subject: [SOLVED]How to change wireless mac addresses of Fonera???
Hi to all.
I have a big problem.
I successfully installed the last dd-wrt release on Fonera but now I'm not able to change the defaults mac addresses.
I modified with the following command:
nvram set et0macaddr=00:05:BB:ED:AF:8C
nvram set lan_hwaddr=00:05:BB:ED:AF:8C
nvram set ath0_hwaddr=00:05:BB:ED:AF:8D
nvram set wl0_hwaddr=00:05:BB:ED:AF:8D
nvram commit
When I go in to web interface after reboot it seems good:
Router
Router Name
DD-WRT
Router Model
Fonera 2100/2200
LAN MAC
00:05:BB:ED:AF:8C
WAN MAC
Wireless MAC
00:05:BB:ED:AF:8D
WAN IP
Disabled
LAN IP
192.168.0.1
But if i try to connect with a wirelss client the wirless mac it's always the original default.
It seems that the default wirless mac it's write into the kernel or in hadcoded way.
Infact if I lunch the ifconfig command
ath0 Link encap:Ethernet HWaddr ORIGINAL
UP BROADCAST RUNNING MULTICAST MTU:2290 Metric:1
RX packets:14066 errors:0 dropped:0 overruns:0 frame:0
TX packets:11764 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:316879 (309.4 KiB) TX bytes:681023 (665.0 KiB)
br0 Link encap:Ethernet HWaddr ORIGINAL
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:17596 errors:0 dropped:0 overruns:0 frame:0
TX packets:2610 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:588730 (574.9 KiB) TX bytes:1816579 (1.7 MiB)
br0:0 Link encap:Ethernet HWaddr ORIGINAL
inet addr:169.254.255.1 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
eth0 Link encap:Ethernet HWaddr ORIGINAL
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3517 errors:0 dropped:0 overruns:0 frame:0
TX packets:14092 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:517935 (505.7 KiB) TX bytes:2465060 (2.3 MiB)
Interrupt:4 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MULTICAST MTU:16436 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wifi0 Link encap:Ethernet HWaddr ORIGINAL
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28447 errors:0 dropped:0 overruns:0 frame:2196739
TX packets:18518 errors:1524 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:399
RX bytes:1148410 (1.0 MiB) TX bytes:2127785 (2.0 MiB)
Interrupt:3 Memory:b0000000-b00ffffc
Infact if i check the device value it's setted to original:
cat /sys/devices/virtual/net/eth0/address
ORIGINAL MAC
cat /sys/devices/virtual/net/ath0/address
ORIGINAL MAC
From web i setted the starup script command with nvram but nevere changed.
I saw in the nvram settings these variables:
ath0_macmode1=disabled
wl_macmode=disabled
wl0_macmode=disabled
wl_macmode1=disabled
ath0_macmode=disabled
What they mean??
Could someone help me??
Thank u in advance!!!!!!!

_________________
http://www.wifi-ita.com/forum/
Use your Brain, don't be slave!!!!

Last edited by drpepperONE on Sun Feb 24, 2008 17:26; edited 3 times in total
Sponsor
<=' td='>
drpepperONE
DD-WRT Novice
Joined: 02 Dec 2007
Posts: 17
Location: http://www.wifi-ita.com/forum/

Posted: Mon Dec 03, 2007 9:32 Post subject:
You think ther's not a way to change it in non jtag mode??
For example uploading different code or using a flashing telnet mode RedBoot with fis ???

_________________
http://www.wifi-ita.com/forum/
Use your Brain, don't be slave!!!!

Last edited by drpepperONE on Sun Feb 24, 2008 17:26; edited 1 time in total
mazilo
DD-WRT User
Joined: 10 Jun 2006
Posts: 385

Posted: Mon Dec 03, 2007 15:18 Post subject:
I guess if the bootloader is on a partition, you probably will be able to retrieve its contents using a dd command, modify the contents, then use the dd command to upload to the partition to see if the MAC Addresses have changed.
_________________
Mazi
UK non-geo DID #: +447031942574
drpepperONE
DD-WRT Novice
Joined: 02 Dec 2007
Posts: 17
Location: http://www.wifi-ita.com/forum/

Posted: Mon Dec 03, 2007 18:21 Post subject:
mazilo wrote:
I guess if the bootloader is on a partition, you probably will be able to retrieve its contents using a dd command, modify the contents, then use the dd command to upload to the partition to see if the MAC Addresses have changed.

Nice..it could be a good idea I may tray ..

_________________
http://www.wifi-ita.com/forum/
Use your Brain, don't be slave!!!!

Last edited by drpepperONE on Sun Feb 24, 2008 17:27; edited 1 time in total
mazilo
DD-WRT User
Joined: 10 Jun 2006
Posts: 385

Posted: Tue Dec 04, 2007 0:33 Post subject:
drpepperONE wrote:
Nice..it could be a good idea I may tray ..

Please kindly report back to let's know.

_________________
Mazi
UK non-geo DID #: +447031942574
drpepperONE
DD-WRT Novice
Joined: 02 Dec 2007
Posts: 17
Location: http://www.wifi-ita.com/forum/

Posted: Tue Dec 04, 2007 9:47 Post subject:
I'm thinking to use the redboot prompt.
But i'm not sure that in dd-wrt installed it works..
Normaly it works in installation/flashing phase, after the reboot the first 10 second the fon dd-wrt listen on special tcp port .
I'll try with finally dd-wrt installation .to see if I'll able to go in telnet in redboot.

_________________
http://www.wifi-ita.com/forum/
Use your Brain, don't be slave!!!!

Last edited by drpepperONE on Sun Feb 24, 2008 17:27; edited 1 time in total
drpepperONE
DD-WRT Novice
Joined: 02 Dec 2007
Posts: 17
Location: http://www.wifi-ita.com/forum/

Posted: Tue Dec 11, 2007 16:52 Post subject:
I tried to change de original default macaddress in Redboot, but i dont saw anithing to do it.
With the bdshow command it display the origial mac.
Is there any Redboot command to modify the mac address??

_________________
http://www.wifi-ita.com/forum/
Use your Brain, don't be slave!!!!

Last edited by drpepperONE on Sun Feb 24, 2008 17:27; edited 1 time in total
Simon
DD-WRT Guru
Joined: 20 Jul 2007
Posts: 612

Posted: Tue Dec 11, 2007 19:19 Post subject:
Try hex editing the bootloader (VERY VERY CAREFULLY!).
goldserve
DD-WRT User
Joined: 07 Jun 2006
Posts: 115

Posted: Wed Dec 12, 2007 8:13 Post subject:
I believe the atheros calibration and mac addresses are stored in an area marked off as not accessible by the bootloader.
drpepperONE
DD-WRT Novice
Joined: 02 Dec 2007
Posts: 17
Location: http://www.wifi-ita.com/forum/

Posted: Wed Dec 12, 2007 10:11 Post subject:
goldserve wrote:
I believe the atheros calibration and mac addresses are stored in an area marked off as not accessible by the bootloader.

I agree with you.
But I think that ther's must be a way to change the default mac address, it's not possibile that thers'not.
Is there some dd-wrt developper that can help me??
I remeber that when I installed the open-wrt on the linksys devices by default open-wrt changed the default mac with one that was always the same for all.

_________________
http://www.wifi-ita.com/forum/
Use your Brain, don't be slave!!!!

Last edited by drpepperONE on Sun Feb 24, 2008 17:29; edited 1 time in total
maybeme
DD-WRT Novice
Joined: 21 Apr 2007
Posts: 15

Posted: Wed Dec 12, 2007 11:34 Post subject:
I saw there were changes in SVN regarding MAC's. Maybe you should check it out:
especially the changes on 12/05/2007
http://svn.dd-wrt.com:8000/dd-wrt/timeline
drpepperONE
DD-WRT Novice
Joined: 02 Dec 2007
Posts: 17
Location: http://www.wifi-ita.com/forum/

Posted: Wed Dec 12, 2007 14:54 Post subject:
I opened a ticket.
http://svn.dd-wrt.com:8000/dd-wrt/ticket/284

_________________
http://www.wifi-ita.com/forum/
Use your Brain, don't be slave!!!!

Last edited by drpepperONE on Sun Feb 24, 2008 17:28; edited 1 time in total
drpepperONE
DD-WRT Novice
Joined: 02 Dec 2007
Posts: 17
Location: http://www.wifi-ita.com/forum/

Posted: Tue Jan 01, 2008 13:37 Post subject:
No news from the ticket!!
I installed the new RC6.1 firmware but the problem remain the same.
I changed other values in nvram but nothing changed!!
nvram set def_whwaddr='00:01:02:03:04:2D'
nvram set wl_ap_mac='00:01:02:03:04:2D'
nvram set def_whwaddr='00:01:02:03:04:2D'
nvram set et0macaddr='00:01:02:03:04:2C'
nvram set lan_hwaddr='00:01:02:03:04:2C'
nvram set il0macaddr='00:01:02:03:04:2D'
nvram set ath0_hwaddr='00:01:02:03:04:2D'
nvram set wl0_hwaddr='00:01:02:03:04:2D'
nvram set et0macaddr='00:01:02:03:04:2C'
nvram set lan_hwaddr='00:01:02:03:04:2C'
nvram set ath0_hwaddr='00:01:02:03:04:2D'
nvram set wl0_hwaddr='00:01:02:03:04:2D'
nvram set wl_hwaddr='00:01:02:03:04:2D'
nvram set wl_active_mac=00:01:02:03:04:2D'
nvram commit
When i try to connect with a wireless client the MAC ADDRESS shown is the original!!
My gooooddddd!!!!!

_________________
http://www.wifi-ita.com/forum/
Use your Brain, don't be slave!!!!

Last edited by drpepperONE on Sun Feb 24, 2008 17:28; edited 1 time in total
drpepperONE
DD-WRT Novice
Joined: 02 Dec 2007
Posts: 17
Location: http://www.wifi-ita.com/forum/

Posted: Tue Jan 01, 2008 14:00 Post subject:
these are the getWANMac, getLANMac, getWirelesMac function that get the mac adress:
Code:
}
char *getLANMac (void)
{
unsigned char mac[20];
strcpy (mac, nvram_safe_get ('et0macaddr'));
if (nvram_match ('port_swap', '1'))
{
if (strlen(nvram_safe_get ('et1macaddr')) != 0) //safe: maybe et1macaddr not there?
{
strcpy (mac, nvram_safe_get ('et1macaddr'));
}
else
{
MAC_ADD(mac); //et0macaddr +1
}
}
return mac;
}
char *getWirelessMac (void)
{
unsigned char mac[20];
if (strlen(nvram_safe_get ('il0macaddr')) != 0)
{
strcpy (mac, nvram_safe_get ('il0macaddr'));
}
else
{
if (nvram_match ('port_swap', '1'))
{
if (strlen(nvram_safe_get ('et1macaddr')) != 0) //safe: maybe et1macaddr not there?
{
strcpy (mac, nvram_safe_get ('et1macaddr'));
MAC_ADD (mac); //et1macaddr +2
MAC_ADD (mac);
}
else
{
strcpy (mac, nvram_safe_get ('et0macaddr'));
MAC_ADD (mac); //et0macaddr +3
MAC_ADD (mac);
MAC_ADD (mac);
}
}
else
{
strcpy (mac, nvram_safe_get ('et0macaddr'));
MAC_ADD (mac); //et0macaddr +2
MAC_ADD (mac);
}
}
return mac;
}
char *getWANMac (void)
{
unsigned char mac[20];
strcpy (mac, nvram_safe_get ('et0macaddr'));
MAC_ADD (mac); //et0macaddr +1
if (nvram_match ('port_swap', '1'))
{
if (strlen(nvram_safe_get ('et1macaddr')) != 0) //safe: maybe et1macaddr not there?
{
strcpy (mac, nvram_safe_get ('et1macaddr'));
MAC_ADD (mac); //et1macaddr +1
}
else
{
MAC_ADD (mac); //et0macaddr +2
}
}
return mac;
}

so the vairable to change are :
et0macaddr
il0macaddr
But after editing them in nvram, never changed!!!

_________________
http://www.wifi-ita.com/forum/
Use your Brain, don't be slave!!!!

Last edited by drpepperONE on Sun Feb 24, 2008 17:28; edited 1 time in total
DD-WRT Forum Forum Index ->Atheros WiSOC based HardwareAll times are GMT

Navigation

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
aus Metalab, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Wechseln zu: Navigation, Suche
  • 1FLASHING
    • 1.2Mac OS X
  • 2CONFIGURATION

FLASHING

NEW: Gargoyle Flash Fon Utility

Gargoyle project includes a Flash Fon utility that works similarly as EasyFlash, but works on MacOSX, Linux and Windows

Mac OS X

Since EasyFlash isn't available for Max OS X, we do this manually (FON2200 + ethernet only): Smart interactive whiteboard.

1. Set IP address of your Mac:

antifuchs says: this does not work reliably on Leopard. What does work is: In Network.prefpane, Make a new network location, make inactive every device except ethernet; set ethernet config to 'Manual', configure IP address 192.168.1.254. Then select that location as your current location.

2. Enable tftp

Alternative 1:Get TFTPServer, point it to the directory that contains the firmware; it needs to be world-read/writable; you can let that program fix permissions for you.

Altenative 2: Use the tftp server which comes with Mac OS X:

3. Copy OpenWRT files to tftp dir:

These files are typically what you want to use:

  • openwrt-atheros-2.6-vmlinux.lzma
  • openwrt-atheros-2.6-root.squashfs


4. Upload the firmware

Two methods here: The lazy approach, and flashing it manually. I recommend doing it by hand at least once to be able to debug the lazy approach if it goes wrong.

Flashing manually

Get access to RedBoot

See also http://forum.openwrt.org/viewtopic.php?pid=63402.

fonera an den strom, wenn das 2te led zu blinken beginnt:

danach ctrl+c

Fonera ip address finder

-> You should now have a 'RedBoot>' prompt. If not, rinse and repeat.

Flash new kernel and filesystem images in RedBoot:

In RedBoot (assuming you configured the machine with the tftp server to 192.168.1.254):

Reboot

You are now where EasyFlash ends.Wait for the boot to finish and telnet to 192.168.1.1 and set a root password.

Flashing automatically (the lazy approach)

Get this expect script (written by Antifuchs and Marius):https://whatever.metalab.at/user/kintel/fonera/flashit.expect

Usage:
1. Start script: ./flashit.expect
Optionally, you can give kernel and squashfs files as parameters if they don't have the default filenames
2. Connect and power up the Fonera
3. When you see stuff happening, go for lunch.

When the script exits (and you see no error message), you can safely reboot the box and telnet to 192.168.1.1

Windows/Linux (easyflash):

Flashing Utility
  • Linux/Unix: ap51-flash-fonera-1.0-42
  • Windows: ap51-flash-fonera-gui-1.0-42.exe

Passendes Tool runterladen.

System Images

die beiden runterladen.


Jetzt kommts.

  1. Linux/Unix Vista
  2. Fonera mit Ethernet-Patchkabel an eth0 anstecken.
  3. Linux/Unix unter Windows ap51-flash-fonera-gui-1.0-38.exe als Administrator ausführen
  4. Strom an den Fonera anstecken


Der Fonera schickt nun beim hochfahren einen ARP request raus, das Flashtool wartet darauf und tut dann seine Magie.Der ganze Flashvorgang dauert rund _15_ Minuten.Zuerst sieht man die IP vom Router Dann steht da was von

Fertig.

Danach hat der Fonero die IP 192.168.1.1 und ist über TELNET erreichbar.Happy hacking.


Flashen direkt aus laufendem OpenWRT

Wenn OpenWRT bereits läuft kann man auch direkt auf eine neue Version updaten bzw. diese über die grade laufende Version drüber flashen.

ABER VORSICHT! Das geht nur wenn die neuen Kernel- und Dateisystemimages gleich groß oder kleiner sind als die die aktuell installiert sind, sonst ist nicht genug Platz frei! In dem Fall müssen die Partitionen ohnehin neu angelegt werden - also eine der anderen hier beschriebenen Updateroutinen verwenden!!

Zuerst per SSH einloggen, dann:

Danach einfach neu starten (Stecker ziehen), per Telnet einloggen und den SSH Zugang neu aktivieren (siehe unten)

set password after flashing

note: after flashing, the fingerprint of the router changes. in that case delete the old entry for 192.168.1.1 from your ssh known_hosts file:

On Windows you can use PuTTY for the SSH connection.

CONFIGURATION

default network configuration files

file description
/etc/ethers specifying static IP addresses via DHCP
/etc/dnsmasq.conf configures DNS masquerading
/etc/hosts maps IP-address to hostname
/etc/networks maps network addresses to network name
/etc/protocols maps protocol to port number; see IANA for a complete list
/etc/config/dhcp configures dhcp server
/etc/config/dropbear configures ssh
/etc/config/firewall configures firewall
/etc/config/network configures network interfaces
/etc/config/system
/etc/config/wireless configures wireless lan adapter

/etc/ethers

This file maps a given MAC-address to an IPv4-Address via DHCP. Example:

Hint: You get the MAC-address using ipconfig -all on Windows or by using ifconfig on Linux/Unix.

/etc/hosts

maps IP address to full domain names, local domain names, and local hostnames. Example:

Hint: you can also use a hosts file to block bad sites; see also custom hosts files

/etc/networks

configures the names and addresses of networks. this file is used by the route command. Example:

/etc/protocols

Usually you don't touch that.

Addresses

/etc/config/network

See OpenWRT Kamikaze Manual for setting up basic network configuration


Example 0:
Routing between Ethernet and WLAN

Note: Routing is enabled by default, so you usually don't have to configure routing tables.


Example 1:
Bridging Ethernet and WLAN


Example 2:
Bridging multiple Ethernet ports

/etc/config/wireless

See OpenWRT Kamikaze Manual for setting up basic wireless network configuration


Example 0:
Routing Ethernet and WLAN without encryption

Note: Routing is enabled by default, so you usually don't have to configure routing tables.


Example 1:
Bridging Ethernet and WLAN with WPA2-PSK-encryption


Example 2:
Configure WDS


WDS Access Point (WDS-AP; first node)


WDS-Station (WDS-STA; all other nodes)


Notes on WPA2-Encryption

For WPA2-Encryption you must install hostapd on Access Points

as well as wpa-supplicant on WDS-Stations

FIXME: Encryption also may only work on interface ath0. Please share your experience here.

INSTALLING PACKAGES

After you have successfully configured a connection with the internet, you can load additional software packages using ipkg.

FIXME: If you compiled OpenWRT yourself, you can register your computer as the package repository

install packages


uninstall packages


Fette ipkg repositories
http://downloads.openwrt.org/kamikaze/packages/mips/
http://ipkg.k1k2.de/packages/

MESH NETWORKS

For Mesh Networks you have to install one of

  • olsrd (may produce routing loops, but standardized and most widely deployed)
  • batman (also included in the robin firmware; does not scale for big networks; beta)
  • babel (also works with wired connections; beta)

on all your nodes.

FIXME: write a howto

CLONING

How to clone (or backup) a Fonera:

1. Get this expect script (written by Marius):https://whatever.metalab.at/user/kintel/fonera/clone.expect

2. Set up your fonera so you can ssh in without a password:

  • Copy your computer's ~/.ssh/id_dsa.pub (or equivalent) to the Fonera
  • On the Fonera:

Fonera Ip Address Finder

3. Run the script on your computer

4. The backup is now made to the files clone.lzma and clone.squashfs. These can be used to reflash another fonera to become an identical copy.


Assumptions: The fonera lives at 192.168.1.1, the root prompt contains a '#', a normal openwrt is flashed on it.


NB! This has not been tested very well, so use with caution until it's been more quality assured.Bugreports are welcome :)

kyrah says: I've tried cloning my Fonera (running OpenWrt) using these instructions, resulting in #fail:Looks like the rootfs_data partition is overwritten when firstboot is run. Must investigate further.

SOFTWARE

Fonera ip address labels
software zum flashen + packages .
http://download.berlin.freifunk.net/fonera/
Buildchain
http://wiki.openwrt.org/BuildingPackagesHowTo
svn co https://svn.openwrt.org/openwrt/tags/kamikaze_7.09
http://forum.openwrt.org/viewtopic.php?pid=31794#p31794
Fette ipkg repositories
http://downloads.openwrt.org/kamikaze/packages/mips/
http://ipkg.k1k2.de/packages/

HARDWARE

LCD am fonera?
http://www.lefinnois.net/wpen/index.php/2007/11/11/lcd-screen-for-la-fonera/
I2C bus?
http://www.lefinnois.net/wpen/index.php/2007/05/13/i2c-bus-for-la-fonera/
Fonera Ip Address

-> You should now have a 'RedBoot>' prompt. If not, rinse and repeat.

Flash new kernel and filesystem images in RedBoot:

In RedBoot (assuming you configured the machine with the tftp server to 192.168.1.254):

Reboot

You are now where EasyFlash ends.Wait for the boot to finish and telnet to 192.168.1.1 and set a root password.

Flashing automatically (the lazy approach)

Get this expect script (written by Antifuchs and Marius):https://whatever.metalab.at/user/kintel/fonera/flashit.expect

Usage:
1. Start script: ./flashit.expect
Optionally, you can give kernel and squashfs files as parameters if they don't have the default filenames
2. Connect and power up the Fonera
3. When you see stuff happening, go for lunch.

When the script exits (and you see no error message), you can safely reboot the box and telnet to 192.168.1.1

Windows/Linux (easyflash):

Flashing Utility
  • Linux/Unix: ap51-flash-fonera-1.0-42
  • Windows: ap51-flash-fonera-gui-1.0-42.exe

Passendes Tool runterladen.

System Images

die beiden runterladen.


Jetzt kommts.

  1. Linux/Unix Vista
  2. Fonera mit Ethernet-Patchkabel an eth0 anstecken.
  3. Linux/Unix unter Windows ap51-flash-fonera-gui-1.0-38.exe als Administrator ausführen
  4. Strom an den Fonera anstecken


Der Fonera schickt nun beim hochfahren einen ARP request raus, das Flashtool wartet darauf und tut dann seine Magie.Der ganze Flashvorgang dauert rund _15_ Minuten.Zuerst sieht man die IP vom Router Dann steht da was von

Fertig.

Danach hat der Fonero die IP 192.168.1.1 und ist über TELNET erreichbar.Happy hacking.


Flashen direkt aus laufendem OpenWRT

Wenn OpenWRT bereits läuft kann man auch direkt auf eine neue Version updaten bzw. diese über die grade laufende Version drüber flashen.

ABER VORSICHT! Das geht nur wenn die neuen Kernel- und Dateisystemimages gleich groß oder kleiner sind als die die aktuell installiert sind, sonst ist nicht genug Platz frei! In dem Fall müssen die Partitionen ohnehin neu angelegt werden - also eine der anderen hier beschriebenen Updateroutinen verwenden!!

Zuerst per SSH einloggen, dann:

Danach einfach neu starten (Stecker ziehen), per Telnet einloggen und den SSH Zugang neu aktivieren (siehe unten)

set password after flashing

note: after flashing, the fingerprint of the router changes. in that case delete the old entry for 192.168.1.1 from your ssh known_hosts file:

On Windows you can use PuTTY for the SSH connection.

CONFIGURATION

default network configuration files

file description
/etc/ethers specifying static IP addresses via DHCP
/etc/dnsmasq.conf configures DNS masquerading
/etc/hosts maps IP-address to hostname
/etc/networks maps network addresses to network name
/etc/protocols maps protocol to port number; see IANA for a complete list
/etc/config/dhcp configures dhcp server
/etc/config/dropbear configures ssh
/etc/config/firewall configures firewall
/etc/config/network configures network interfaces
/etc/config/system
/etc/config/wireless configures wireless lan adapter

/etc/ethers

This file maps a given MAC-address to an IPv4-Address via DHCP. Example:

Hint: You get the MAC-address using ipconfig -all on Windows or by using ifconfig on Linux/Unix.

/etc/hosts

maps IP address to full domain names, local domain names, and local hostnames. Example:

Hint: you can also use a hosts file to block bad sites; see also custom hosts files

/etc/networks

configures the names and addresses of networks. this file is used by the route command. Example:

/etc/protocols

Usually you don't touch that.

/etc/config/network

See OpenWRT Kamikaze Manual for setting up basic network configuration


Example 0:
Routing between Ethernet and WLAN

Note: Routing is enabled by default, so you usually don't have to configure routing tables.


Example 1:
Bridging Ethernet and WLAN


Example 2:
Bridging multiple Ethernet ports

/etc/config/wireless

See OpenWRT Kamikaze Manual for setting up basic wireless network configuration


Example 0:
Routing Ethernet and WLAN without encryption

Note: Routing is enabled by default, so you usually don't have to configure routing tables.


Example 1:
Bridging Ethernet and WLAN with WPA2-PSK-encryption


Example 2:
Configure WDS


WDS Access Point (WDS-AP; first node)


WDS-Station (WDS-STA; all other nodes)


Notes on WPA2-Encryption

For WPA2-Encryption you must install hostapd on Access Points

as well as wpa-supplicant on WDS-Stations

FIXME: Encryption also may only work on interface ath0. Please share your experience here.

INSTALLING PACKAGES

After you have successfully configured a connection with the internet, you can load additional software packages using ipkg.

FIXME: If you compiled OpenWRT yourself, you can register your computer as the package repository

install packages


uninstall packages


Fette ipkg repositories
http://downloads.openwrt.org/kamikaze/packages/mips/
http://ipkg.k1k2.de/packages/

MESH NETWORKS

For Mesh Networks you have to install one of

  • olsrd (may produce routing loops, but standardized and most widely deployed)
  • batman (also included in the robin firmware; does not scale for big networks; beta)
  • babel (also works with wired connections; beta)

on all your nodes.

FIXME: write a howto

CLONING

How to clone (or backup) a Fonera:

1. Get this expect script (written by Marius):https://whatever.metalab.at/user/kintel/fonera/clone.expect

2. Set up your fonera so you can ssh in without a password:

  • Copy your computer's ~/.ssh/id_dsa.pub (or equivalent) to the Fonera
  • On the Fonera:

Fonera Ip Address Finder

3. Run the script on your computer

4. The backup is now made to the files clone.lzma and clone.squashfs. These can be used to reflash another fonera to become an identical copy.


Assumptions: The fonera lives at 192.168.1.1, the root prompt contains a '#', a normal openwrt is flashed on it.


NB! This has not been tested very well, so use with caution until it's been more quality assured.Bugreports are welcome :)

kyrah says: I've tried cloning my Fonera (running OpenWrt) using these instructions, resulting in #fail:Looks like the rootfs_data partition is overwritten when firstboot is run. Must investigate further.

SOFTWARE

software zum flashen + packages .
http://download.berlin.freifunk.net/fonera/
Buildchain
http://wiki.openwrt.org/BuildingPackagesHowTo
svn co https://svn.openwrt.org/openwrt/tags/kamikaze_7.09
http://forum.openwrt.org/viewtopic.php?pid=31794#p31794
Fette ipkg repositories
http://downloads.openwrt.org/kamikaze/packages/mips/
http://ipkg.k1k2.de/packages/

HARDWARE

LCD am fonera?
http://www.lefinnois.net/wpen/index.php/2007/11/11/lcd-screen-for-la-fonera/
I2C bus?
http://www.lefinnois.net/wpen/index.php/2007/05/13/i2c-bus-for-la-fonera/
SD card am fonera?
http://www.larsen-b.com/Article/262.html
http://phrozen.org/fonera.html

Fonera Ip Address Labels

GPIO kernel modul
http://mobileaccess.de/fonera/gpio/
http://daubau.net/proc_gpio/

Fonera Ip Address Ip

Fertig compiliertes GPIO kernelmodul im feschen .ipk + src
Media:Kamikaze_7.09_GPIOkmod.tar.gz
Abgerufen von „https://metalab.at/wiki/index.php?title=Fonera&oldid=32393'




broken image