From d42e0c83de66c9bcb8309860b769ced127b559c4 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Sun, 13 Nov 2016 11:48:43 +0100 Subject: [PATCH] Update default IPs --- README.md | 4 ++-- nmrp.c | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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; -- 2.25.1