Creating logical networks