In a network system comprising a first computer and a second computer, each having plural physical network interfaces (PNICs), and a network connecting said first computer and said second computer, wherein the first computer and the second computer can communicate with each other over said PNICs, a method for configuring a virtual network between said first computer and said second computer, the method comprising:
- at each of said first computer and said second computer,
- configuring a more than one virtual network interface (VNIC) to be used for data transmission and reception;
- setting up a virtual channel identified by a pair of a VNIC identifier configured by said first computer and a VNIC identifier configured by said second computer, and storing a correspondence between said set up virtual channel, said VNIC identifier configured by said first computer and said VNIC identifier configured by said second computer as virtual channel information;
- setting up a physical channel identified by a pair of a first computer PNIC identifier and a second computer PNIC identifier, and storing a correspondence between said set up physical channel, said first computer PNIC identifier and said second computer PNIC identifier as physical channel information;
- at said first computer which is a source,
- when detecting a packet including a transmission instruction for said VNIC configured by said first computer,
- referring to said virtual channel information of said first computer,
- searching for one of said virtual channels identified by one said pair of said VNIC identifiers included in said packet based on said virtual channel information of said first computer, one of said VNIC identifiers being a destination VNIC identifier, and the other of said identifiers being a source VNIC identifier,
- referring to said physical channel information of said first computer,
- selecting said physical channel corresponding to said one virtual channel based on said physical channel information of said first computer,
- translating said source VNIC identifier included in said packet into said first computer PNIC identifier corresponding to said selected physical channel,
- translating said destination VNIC identifier included in said packet into said second computer PNIC identifier corresponding to said selected physical channel,
- transmitting said translated packet from said first computer PNIC corresponding to said selected physical channel to said second computer PNIC corresponding to said selected physical channel,
- at said second computer which is a destination,
- when detecting said translated packet via said second computer PNIC,
- referring to said physical channel information of said second computer,
- searching for said physical channel identified by one said pair of PNIC identifiers included in said packet based on said physical channel information of said second computer, one of said PNIC identifiers being said first computer PNIC identifier corresponding to said searched physical channel, and the other of said PNIC identifiers being said second computer PNIC identifier corresponding to said searched physical channel,
- selecting said virtual channel corresponding to said searched physical channel,
- referring to said virtual channel information of said second computer, translating said first computer PNIC identifier included in said packet into an first computer VNIC identifier corresponding to said selected virtual channel based on said virtual channel information of said second computer,
- translating said second computer PNIC identifier included in said packet into a second computer VNIC identifier corresponding to said selected virtual channel based on said virtual channel information of said second computer, and
- notifying to said VNIC configured by said second computer that said translated packet has been received via said second computer PNIC.