On 18 Apr 16:31, Chris G wrote:
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?
ifconfig eth0:1 netmask 255.255.255.0 192.168.3.94
basically, set up an alias on the other network. should work. that's off the top of my head though, so the syntax might be b0rked.