Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2011 17:36:21 -0700
From:      Oleksandr Tymoshenko <gonzo@freebsd.org>
To:        Erik Moe <ehmoeok@gmail.com>, freebsd-mips@freebsd.org
Subject:   Re: FreeBSD MIPS and RB133c
Message-ID:  <4DC9DA05.7050901@freebsd.org>
In-Reply-To: <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com>
References:  <AEDDDA7C-BCCF-49F7-82AD-B479230EA6F4@gmail.com>	<F8BC0A73-D14B-497B-A8AE-4C9737B667D4@gmail.com> <42E1A1C3-654C-4A1F-8EDC-57EF2A52F5FE@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/05/2011 7:58 AM, Erik Moe wrote:

>>> Using tcpdump, after RouterBoot finishes loading the kernel, I see one DHCP request coming from the RouterBoard using mac 00:0c:42:1e:9a:88 and then there is nothing after that.  I don't see any packets at all.
>>>
>>>    192.168.11.2.23224>  192.168.11.15.61904: [udp sum ok] UDP, length 21
>>> 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 32)
>>>    192.168.11.15.61904>  192.168.11.2.23224: [udp sum ok] UDP, length 4
>>> 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 328)
>>>    0.0.0.0.bootpc>  broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid 0xd8aaeeff, Flags [none] (0x0000)
>>> 	  Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown)
>>> 	  Vendor-rfc1048 Extensions
>>> 	    Magic Cookie 0x63825363
>>> 	    DHCP-Message Option 53, length 1: Release
>>> 	    Client-ID Option 61, length 7: ether 00:0c:42:1e:9a:88
>>> 	    Vendor-Class Option 60, length 9: "Mikroboot"
>>> 	    Parameter-Request Option 55, length 2:
>>> 	      Subnet-Mask, Default-Gateway
>>> 	    END Option 255, length 0
>>> 	    PAD Option 0, length 0, occurs 32
>>>
>>> Thanks,
>>> Erik
>>>
>> Unfortunately the mac address is hardcoded for this driver (in sys/mips/adm5120/if_admsw.c):
>>
>> 389         /* XXXMIPS: fix it */
>> 390         enaddr[0] = 0x00;
>> 391         enaddr[1] = 0x0C;
>> 392         enaddr[2] = 0x42;
>> 393         enaddr[3] = 0x07;
>> 394         enaddr[4] = 0xB2;
>> 395         enaddr[5] = 0x4E;
>>
>>
>> Luiz
>>
>
>
> That's not the main issue I have, the fact that the mac address is hardcoded.  The issue is once the RouterBoot loads and boots the kernel, I'm not seeing the kernel sending any DHCP/BOOTB requests down the wire, even though from the console log it is acting like it is.

Tcpdump session above - are those only packets during the session? Were
there proper DHCP replies that were ignored? Could you show full log?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DC9DA05.7050901>