I'm setting up a NAT, and need to assign a static IP to my eth1 interface. The problem is that once in a while, it resets, and I need to run the following command again:
sudo ifconfig eth1 192.168.47.1 netmask 255.255.255.0
I was wondering if I can hardcode this static IP to this interface. Probably there should be a file which we would just need to modify, or so?