Update default IPs

This commit is contained in:
Joseph C. Lehner 2016-11-13 11:48:43 +01:00
parent 7a980ffa01
commit d42e0c83de
2 changed files with 7 additions and 4 deletions

View file

@ -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

7
nmrp.c
View file

@ -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;