Hey Mario,

> now, I would like to inform the fonera that it can disregard eth0 and
> use eth1 instead.
> 
> I prefer having to do it from the command line, without altering
> configuration files in the fonera, is it possible?
> 
> my fear with altering configuration files is that if I do so and I have
> to reboot the fonera, I will first need to log into it to do the steps
> which are necessary for making it see the modem as eth1, and at that
> moment the fonera is already configured for using the not yet existing
> device. the couple of times I have removed eth0.2 and replaced it with
> eth1 -and rebooted the fonera-, the fonera would then not appear with
> its private wifi signal.

Hm. I previously wrote:

> If there is indeed a USB net device created, I think it should be as
> simple as changing the /lib/fon/config.sh script to change the line:
>   wan_ifname="eth0.2"
> to use the usb net device name instead of the
> eth0.2 device name.  Setting up something to automatically switch
> between wired and 3G is a bit more complicated, of course. 

But I think you're saying that won't work because you need to manually
set up the 3G device after a reboot?

So if you _don't_ want to make the changed device persistent across
reboots, I think you should modify /etc/config/network, which will be
automatically regenerated after reboot by /lib/fon/config.sh:

        
http://trac.fonosfera.org/fon-ng/browser/trunk/fon/fonbase/files/lib/fon/config.sh

I haven't actually tested this, but I think something along these lines
may work:

root@Fonera:~# ifdown wan
root@Fonera:~# uci set network.wan.ifname=eth1
root@Fonera:~# uci commit network
root@Fonera:~# ifup wan

This assumes you have your WAN connection normally configured for DHCP,
otherwise you might also need to set the "network.wan.proto" variable to
"dhcp".


Let me know if this helps!

Regards,

Matthijs Kooijman

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Development mailing list
[email protected]
http://fonosfera.org/mailman/listinfo/development

Reply via email to