Update default IPs
This commit is contained in:
parent
7a980ffa01
commit
d42e0c83de
2 changed files with 7 additions and 4 deletions
|
|
@ -55,7 +55,7 @@ after starting `nmrpflash`.
|
||||||
# nmrpflash -i eth0 -f EX2700-V1.0.1.8.img
|
# nmrpflash -i eth0 -f EX2700-V1.0.1.8.img
|
||||||
Advertising NMRP server on eth0 ... /
|
Advertising NMRP server on eth0 ... /
|
||||||
Received configuration request from a4:2b:8c:00:00:01.
|
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'.
|
Received upload request: filename 'firmware'.
|
||||||
Uploading EX2700-V1.0.1.8.img ... OK
|
Uploading EX2700-V1.0.1.8.img ... OK
|
||||||
Waiting for remote to respond.
|
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."
|
###### "Timeout while waiting for initial reply."
|
||||||
|
|
||||||
The device did not respond to `nmrpflash`'s TFTP upload request. By default,
|
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
|
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*
|
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
|
IP address, such as `-a 192.168.1.252`), and `-A` to change the IP address used for the
|
||||||
|
|
|
||||||
7
nmrp.c
7
nmrp.c
|
|
@ -430,10 +430,13 @@ int nmrp_do(struct nmrpd_args *args)
|
||||||
|
|
||||||
if (!args->ipaddr) {
|
if (!args->ipaddr) {
|
||||||
autoip = true;
|
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) {
|
if (!args->ipaddr_intf) {
|
||||||
args->ipaddr_intf = "10.11.12.253";
|
args->ipaddr_intf = "10.164.183.253";
|
||||||
}
|
}
|
||||||
} else if (args->ipaddr_intf) {
|
} else if (args->ipaddr_intf) {
|
||||||
autoip = true;
|
autoip = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue