From: Joseph C. Lehner Date: Sun, 13 Nov 2016 10:48:43 +0000 (+0100) Subject: Update default IPs X-Git-Tag: v0.9.7^0 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d42e0c83de66c9bcb8309860b769ced127b559c4;p=oweals%2Fnmrpflash.git Update default IPs --- diff --git a/README.md b/README.md index 235c912..a9226cf 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ after starting `nmrpflash`. # nmrpflash -i eth0 -f EX2700-V1.0.1.8.img Advertising NMRP server on eth0 ... / Received configuration request from a4:2b:8c:00:00:01. -Sending configuration: ip 10.11.12.252, mask 255.255.255.0. +Sending configuration: ip 10.164.183.252, mask 255.255.255.0. Received upload request: filename 'firmware'. Uploading EX2700-V1.0.1.8.img ... OK Waiting for remote to respond. @@ -97,7 +97,7 @@ MAC address. It's also possible that your device does not support the NMRP proto ###### "Timeout while waiting for initial reply." The device did not respond to `nmrpflash`'s TFTP upload request. By default, -`nmrpflash` will assign `10.11.12.252` to the target device, while adding `10.11.12.253` +`nmrpflash` will assign `10.164.183.252` to the target device, while adding `10.164.183.253` to the network interface specified by the `-i` flag. You can use `-a` to change the IP address assigned to the target (e.g. if your network is `192.168.1.0/24`, specify a *free* IP address, such as `-a 192.168.1.252`), and `-A` to change the IP address used for the diff --git a/nmrp.c b/nmrp.c index 86550b9..0fb583e 100644 --- a/nmrp.c +++ b/nmrp.c @@ -430,10 +430,13 @@ int nmrp_do(struct nmrpd_args *args) if (!args->ipaddr) { autoip = true; - args->ipaddr = "10.11.12.252"; + /* The MAC of the device that was used to test this utility starts + * with a4:2b:8c, hence 164 (0xa4) and 183 (0x2b + 0x8c) + */ + args->ipaddr = "10.164.183.252"; if (!args->ipaddr_intf) { - args->ipaddr_intf = "10.11.12.253"; + args->ipaddr_intf = "10.164.183.253"; } } else if (args->ipaddr_intf) { autoip = true;