What's the easiest way to 'talk' (i.e. connect) to a device that's set up for a different subnet from the one that your local subnet is using?
This is a common recurring problem in two situations:-
You have a subnet that's *not* 192.168.1.x and you want to use a router (or whatever) that comes with its default address set to 192.168.1.1.
You have set a router (or something) to a different subnet for some reason and want to 'get it back'.
I have done it a few times by editing /etc/sysconfig/network-scripts/ifcfg-eth0 to the new subnet and then rebooting, doing what I need to do and then changing ifcfg-eth0 and rebooting again but this seems a little laborious.
Is there an easier way? Could I just run ifconfig from the command line to do what I did above, but rather more quickly and easily? Are there any other ways to do this?