You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2007-08-07 19:06:52

benno
Member
From: Germany
Registered: 2007-08-06
Posts: 7
Website

networking_ports and automatic setting of ip address (using 0.7)

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

#2 2007-08-07 21:12:58

benno
Member
From: Germany
Registered: 2007-08-06
Posts: 7
Website

Re: networking_ports and automatic setting of ip address (using 0.7)

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

#3 2007-08-07 21:20:01

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: networking_ports and automatic setting of ip address (using 0.7)

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

#4 2007-08-08 11:51:53

benno
Member
From: Germany
Registered: 2007-08-06
Posts: 7
Website

Re: networking_ports and automatic setting of ip address (using 0.7)

MoYo wrote:

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

Board footer

Powered by FluxBB