Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

I can't do PING between machines (server and agent)

I can't do PING between machines (server and agent). I have 2 machines in VirtualBox in NAT. I have this configuration.

file server --> /etc/network/interfaces

iface enp0s3 inet static
	address	192.168.1.100
	netmask	255.255.255.0	
	network	192.168.1.0	
	broadcast 192.168.1.255
	gateway	192.168.1.1

Then I restart service network --> /etc/init.d/networking restart
I down and up enp0s3.
And if I do ifconfig I have default IP (10.0.2.15) ¿Why have I this IP? ¿Why don't change it?
But if I write in the browser http://192.168.1.100/ocsreports it find it
file agent --> /etc/network/interfaces
iface enp0s3 inet static
	address	192.168.1.101
	netmask	255.255.255.0	
	network	192.168.1.0	
	broadcast 192.168.1.255
	gateway	192.168.1.1

Then I do the same and I have the same error.I have 10.0.2.15(IP default)

in IP Discover by (280 points)
edited by

1 Answer

0 votes
Hello,

Si ta carte réseau est en NAT, Virtualbox attribuera automatiquement la plage 10.0.0.0.

Mets tes cartes en "accès par pont". Ensuite, donne une IP à chacune de tes machines en fonction de ton réseau local. S'il est en 192.168.1.0 alors tu pourras faire fonctionner ton réseau avec ta conf actuelle.
by (4.9k points)
 
Powered by Question2Answer
...