dhcp command

Hi,

for me dhcp eth0 returns the following:


Trying to configure eth0

INFO [DHCPClient]: Got Client IP adress : 0.0.0.0

INFO [DHCPClient]: Got Your IP adress : 192.168.73.128

INFO [DHCPClient]: Got Server IP adress : 192.168.73.254

INFO [DHCPClient]: Got Gateway IP address : 0.0.0.0

INFO [DHCPClient]: Got Dns1 IP address : 255.255.255.0

INFO [DHCPClient]: Got Dns2 IP address : 3.4.192.168

INFO [DHCPClient]: Got Router IP address : 192.168.73.2

I think at least the values of :

Dns1

Dns2

are wrong.

The value of Dns1 should be the subnetmask. What Dns2 is, I have no idea, but it looks strange. Will JNode handle dns requests correctly (like ping www.google.de, if the dns is set up correctly?

Trickkiste

Manual network configuration

Hi,
I'm trying to configure the network manually using the ifconfig and route commands. However when I'm trying to add the default gateway the route command doesn't work for me, the -gw IP_ADDR option is not recognized.
Is it possible to configure the network like this at the current status of the system or I'm missing something?

Regads,
Levente

Looks strange, this should wo

Looks strange, this should work, so I think I'll have to check it. You can use the "resolver" command to show/remove/add the dns servers. You should be able to make a pings on urls.

Regards,
Martin

BOOTPHeader broken

I looked at the source and the problem is BOOTPHeader has been broken by adding the support for DNS1/2 IP addresses. You should roll-back the CVS to v1.6. There are NO DNS address fields in the BOOTP header (see the RFC). Further, the BOOTP header is only 236 bytes long, you are reading stuff at offsets 267 and 271! The correct way to obtain DNS addresses is to use DHCPMessage.getOption(DHCPMessage.DNS_OPTION). This will return a byte array which has a length that is a multiple of 4, containing a list of ip addresses. E.g. addr1 is bytes 0-3, addr2 is bytes 4-7, etc

Regards,

Mark

Thanks Mark, I can see what y

Thanks Mark, I can see what you mean, I'll start correcting this as soon as possible.

Regards,
Martin

It should be fixed now. Re

It should be fixed now.

Regards,
Martin

it is

Hi,
now it works fine.

Andreas

I'll test it

Hi,
thanks 4 info,
I will give it a try.

Trickkiste