You are not logged in.
Hi,
can somebody explain the behavior of networking ports: when i have a port on a computer-device(!) that has an IP-address, and i connect this port to another port on another computer, this other port gets the same IP-address!
This way I cannot use GLPI for routers. Example: two Routers with networking ports xl0, xl1
Router1 Router2
xl0 xl1 .................. connected to .......................xl0 xl1 ..........................
192.168.10.1/30 192.168.10.1/30 172.16.0.1/24
When I set up the connection from Router1 to Router2, Router2 gets the same IP on its Interface xl0!
Note that there is no switch or hub in between!
I'm using a snapshot form 2007-07-31.
Thanks,
Benno
Offline
I have traced this to glpi/inc/networking.class.php Netport->post_updateItem()
It seems that i should change
$tomatch=array("netpoint","ifaddr","ifmac");
to
$tomatch=array("netpoint");
Now, is the normal behavior usefull or not?
/Benno
Offline
yes it was strange. I will correct in the code.
Auto update in that case is not really intelligent.
Maybe only update IP and MAC on links between a network item and other item like computer.
By not between 2 networking item.
Thanks.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
yes it was strange. I will correct in the code.
Auto update in that case is not really intelligent.Maybe only update IP and MAC on links between a network item and other item like computer.
By not between 2 networking item.Thanks.
What bugs me about this update-mechanism is that when i click on an interface i would not expect to see data of a connected interface as being the data of the device i am currently working on. Not even on a switch, at least i would not expect to be able to change the ip configuration of device X when viewing the port information on device Y.
Maybe network items should not even have ip-data stored with their networking ports?
You can tell me if you have a change that needs testing.
/Benno
Offline