AW: [En-Nut-Discussion] Old problem about changing MAC on RTL8019AS

Ernst Stippl ernst at stippl.org
Tue Feb 21 21:46:24 CET 2006


Hi!

Try adding:

if (( i = NutIpRouteAdd (0, 0, ip_gate, &DEV_ETHER)) != 0) 
   {
   printf ("NutIpRouteAdd error %d\n", i);
   } 

after NutNetIfConfig2 call. Maybe that helps.

Regards

Ernst


-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von def at fea.kiev.ua
Gesendet: Freitag, 17. Februar 2006 11:19
An: Ethernut User Chat (English)
Betreff: [En-Nut-Discussion] Old problem about changing MAC on RTL8019AS

Hi All!!!

I want change MAC adress on my own hardware (atmega128+rtl8019as +
winavr20050214+ethernut-4.0.2) through the WEB.\

Configuration of network interface:
NutNetIfConfig2("eth0", mac, ip_addr, ip_mask, dg_addr);

Problem:
after changing MAC in configuration structure which store in EEPROM I reboot
my hardware by using watchdog:
wdt_disable();
wdt_enable(WDTO_15MS);

But after reboot in that way network interface don't work corectly:
- in arp table I see new MAC and IP
- ping and other services don't work 8(

after second reboot hardware work corectly...

I have not idea where find its "bug"... 8(

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion




More information about the En-Nut-Discussion mailing list