EarlRamirez / snipeit_iso

Up and running with Snipe-IT
GNU General Public License v2.0
14 stars 4 forks source link

Change IP Address #36

Open zilong13 opened 3 years ago

zilong13 commented 3 years ago

Hi

the problem is there're no chance to let me input the IP address I want, how can I change the IP Address during the installation? If DHCP available in the network, Snipe-IT will get an random IP, if it don't, http:// IP is blank, so, that's the point! Thanks.

Brian

EarlRamirez commented 3 years ago

On Mon, 2020-09-14 at 08:46 -0700, zilong13 wrote:

Hi

the problem is there're no chance to let me input the IP address I want, how can I change the IP Address during the installation?

Thanks.

Brian Currently, this option is not available, since the goal is to make the process is simple as possible, however, you can change the IP address after the installation is complete, but you will have to update the .env with the updated IP address.

EarlRamirez commented 3 years ago

I will add an option where one can choose between the static or dynamic IP address.

zilong13 commented 3 years ago

I will add an option where one can choose between the static or dynamic IP address.

Thank you, Can you guide me how to change network to static IP and where i can find the .env file? appreciated.

EarlRamirez commented 3 years ago

I will add an option where one can choose between the static or dynamic IP address.

Thank you, Can you guide me how to change network to static IP and where i can find the .env file? appreciated.

Sure, to change the IP you can use the CLI menu nmtui and update your network details or you can use the following commands

To update the .env file, do the following

zilong13 commented 3 years ago

I will add an option where one can choose between the static or dynamic IP address.

Thank you, Can you guide me how to change network to static IP and where i can find the .env file? appreciated.

Sure, to change the IP you can use the CLI menu nmtui and update your network details or you can use the following commands

  • nmcli con modify "System eth0" ip4 192.168.122.200/24 ipv4.dns 192.168.122.1,192.168.122.2 ipv4.gateway 192.168.122.1 ipv4.method manual
  • ifdown eth0
  • ifup eth0

To update the .env file, do the following

  • snipe_home this will change the directory to /var/www/html/snipe-it
  • Edit .env sudo vi .env and update the IP address (APP_URL)
  • After you have saved your changes, clear the cache by using the following aliases
  • clear_config
  • clear_cache Let me know how it goes

Hi Sir, When I type "nmcli con modify "System eth0" ip4 192.168.122.200/24 ipv4.dns 192.168.122.1,192.168.122.2 ipv4.gateway 192.168.122.1 ipv4.method manual"

zilong13 commented 3 years ago

I got this message, Error: invalid .'ipv4'.

zilong13 commented 3 years ago

I got this message, Error: invalid .'ipv4'.

Issue fixed.

EarlRamirez commented 3 years ago

Issue fixed

Awesome